#!/bin/sh
# creates a zip archive, suitable for use as a backup, or for
# providing an example of how to make a online itrans web server cgi
# script.
# Assumes ~cgi/webitrans has the required files.

set -x
ARCH="itrans-cgi.zip"

# run the makefile from the itrans directory
I=~cgi/itrans-src/itrans-5.3
make -f $I/src/Makefile.dist $ARCH

# -------------------------------------- old code, not used
exit 0

D=~cgi/webitrans
FILES="$D/webitrans.pl \
	$D/prepi2h.pl \
	$D/initial.tmpl \
	$D/working.tmpl \
	$D/form.tmpl \
	$D/done.tmpl \
	$D/itrlat1.itx \
	$D/itrutf8.itx \
	$D/itrtex.itx \
	$D/webincl.tex \
	$D/webtest.txt \
	$D/README \
	$D/dvipsrc \
	$D/FormExample \
	$D/mkdist"

zip $ARCH $FILES 
ls -ld ${ARCH}*
