#!/bin/sh
# $poplocal/local/com/mkbhamteachtar
# Create tar file with Birmingham local teaching stuff and utilities
# Creates $local/bhamteach.tar.gz and copies it to FTP directory
# Aaron Sloman
# 1 Jan 2005 added help pattern_instance
# 10 Feb 2003 added ved_aspell.p and help file
# 27 Jul 2002 added ved_bash.p, ved_tcsh.p, vedgenshell.p
# 4 Apr 2002 Tidied up
# 6 Oct 2001 mkxvedlisp


echo "removing existing compressed version"
ls -l $poplocal/local/ftp/bhamteach.tar.gz
rm -f $poplocal/local/ftp/bhamteach.tar.gz

echo 'creating compressed tar file $poplocal/local/ftp/bhamteach.tar.gz'

## needs modified version of pipein.p for linux

cd $local

cp -p $local/ftp/new/install.txt COPYRIGHT

rm -f AATARFILE*
touch "AATARFILE`date +%F`"

tar cf - \
    COPYRIGHT \
    auto/ARGS.p \
    auto/XptDefaultScreen.p \
    auto/Xved.p \
    auto/\!.p \
    auto/ask_xved.p \
    auto/compilehere.p \
    auto/concat_strings.p \
    auto/datafile.p \
    auto/doesmatch.p \
    auto/forall_match.p \
    auto/forevery.p \
    auto/forevery.p \
    auto/get_answer.p \
    auto/get_command_output.p \
    auto/gomem.p \
    auto/gomems.p \
    auto/hasstartstringin.p \
    auto/haiku.p \
    auto/issymlink.p \
    auto/pattern_instance.p \
    auto/pipein.p \
    auto/popindex.p \
    auto/print_file.p \
    auto/rc_background.p \
    auto/rc_circle.p \
    auto/rc_destroy.p \
    auto/rc_foreground.p \
    auto/rc_mouse_coords.p \
    auto/rc_showtree.p \
    auto/rc_title.p \
    auto/rc_window_coords.p \
    auto/rc_window_dimensions.p \
    auto/read_lists_in_file.p \
    auto/readin_shell_output.p \
    auto/storedata.p \
    auto/sys_host_type.p \
    auto/sys_obey_linerep.p \
    auto/sys_popen.p \
    auto/type.p \
    auto/Veddebug.p \
    auto/ved_Respond.p \
    auto/ved_addblock.p \
    auto/ved_addline.p \
    auto/ved_arrows.p \
    auto/ved_aspell.p \
    auto/ved_autosave.p \
    auto/ved_backspace.p \
    auto/ved_bash.p \
    auto/ved_bg.p \
    auto/ved_browse.p \
    auto/ved_bss.p \
    auto/ved_bss.p \
    auto/ved_bssp.p \
    auto/ved_bww.p \
    auto/ved_bww.p \
    auto/ved_bwwp.p \
    auto/ved_calc.p \
    auto/ved_cdiff.p \
    auto/ved_cleanup.p \
    auto/ved_clock.p \
    auto/ved_day.p \
    auto/ved_debug.p \
    auto/ved_decode.p \
    auto/ved_deletefile.p \
    auto/ved_detabmr.p \
    auto/ved_dounix.p \
    auto/ved_fileheader.p \
    auto/ved_getit.p \
    auto/ved_getlib.p \
    auto/ved_getvars.p \
    auto/ved_gg.p \
    auto/ved_gli.p \
    auto/ved_gomem.p \
    auto/ved_gomems.p \
    auto/ved_gp.p \
    auto/ved_grep.p \
    auto/ved_headers.p \
    auto/ved_inkeys.p \
    auto/ved_ins.p \
    auto/ved_ispell.p \
    auto/ved_keymap.p \
    auto/ved_loadline.p \
    auto/ved_ltl.p \
    auto/ved_mem.p \
    auto/ved_mems.p \
    auto/ved_menu.p \
    auto/ved_nextcsame.p \
    auto/ved_procheader.p \
    auto/ved_psprint.p \
    auto/ved_psprintmr.p \
    auto/ved_purgefiles.p \
    auto/ved_reply.p \
    auto/ved_resetvars.p \
    auto/ved_respond.p \
    auto/ved_setwindow.p \
    auto/ved_sgsr.p \
    auto/ved_sortmr.p \
    auto/ved_ss.p \
    auto/ved_ssp.p \
    auto/ved_tcsh.p \
    auto/ved_tli.p \
    auto/ved_tlli.p \
    auto/ved_tlo.p \
    auto/ved_trans.p \
    auto/ved_unix.p \
    auto/ved_vman.p \
    auto/ved_ww.p \
    auto/ved_ww.p \
    auto/ved_wwp.p \
    auto/ved_writeable.p \
    auto/veddiscout.p \
    auto/vedfilecomplete.p \
    auto/vedgenshell.p \
    auto/vedjoinline.p \
    auto/vedlastitem.p \
    auto/vedncdxtermkeys.p \
    auto/vedsetwindow.p \
    auto/vedsuntype5.p \
    auto/vedsunxtermkeys.p \
    auto/vedxtermkeys.p \
    auto/which_values.p \
    auto/while_matching.p \
    auto/xplatform.p \
    com/README \
    com/mkall.local  \
    com/mkboole  \
    com/mkclisp.local  \
    com/mkeliza.local  \
    com/mkgblocks  \
    com/mkgram.local  \
    com/mkind.local  \
    com/mkbhamteachtar \
    com/mklocalindex  \
    com/mklogic.local  \
    com/mkms.local  \
    com/mkplog.local  \
    com/mkpml.local  \
    com/mkprb  \
    com/mkrc_graphic  \
    com/mkrc_poly  \
    com/mkrhino  \
    com/mksim  \
    com/mkstartup.local  \
    com/mkstartup.nomotif  \
    com/mkstartup.nox  \
    com/mkxved.local  \
    com/mkxvedpro  \
    com/mkxvedlisp  \
    com/poplog \
    com/poplog.sh \
    com/popenv \
    com/popenv.sh \
    lib/advent_objectclass.p \
    lib/arrayfile.p \
    lib/brait.p \
    lib/buildindex.p \
    lib/connect4.p \
    lib/elizaprog.p \
    lib/emacsreadline.p \
    lib/eshell.p \
    lib/fixvedhelp.p \
    lib/ga.p \
    lib/generate_category.p \
    lib/go.p \
    lib/gramdemo.p \
    lib/gramdemo.p \
    lib/hangman.p \
    lib/logic.p \
    lib/rcmenulib.p \
    lib/rcmenu.p \
    lib/mkind.p \
    lib/msblocks.p \
    lib/neural.p \
    lib/newdatafile.p \
    lib/newkit.p \
    lib/newpopvision.p \
    lib/newvederror.p \
    lib/newsolver.p \
    lib/oldvars.p \
    lib/poprulebase.p \
    lib/popvision.p \
    lib/prblib.p \
    lib/prwarning.p \
    lib/puilib.p \
    lib/rc_linepic.p \
    lib/rc_swap_context.p \
    lib/rclib.p \
    lib/readpattern.p \
    lib/rhino.p \
    lib/river.p \
    lib/river2.p \
    lib/routetree.p \
    lib/schema.p \
    lib/sim_agent.p \
    lib/simkit.p \
    lib/simlib.p \
    lib/stripfile.p \
    lib/sublists.p \
    lib/sun4keys.p \
    lib/sunrasterfile.p \
    lib/summarise.p \
    lib/tparse.p \
    lib/ved_lockfile.p \
    lib/ved_status_menu.p \
    lib/vedscreendown.p \
    lib/vedscreendown.p \
    lib/vedsun4keys.p \
    lib/vedsun4xtermkeys.p \
    lib/vision.p \
    plog/lib/nip.pl \
    teach/advent_objectclass \
    teach/ai1project.checklist \
    teach/database \
    teach/datastructures \
    teach/diary \
    teach/email \
    teach/foreach \
    teach/ga \
    teach/ga_dejong.p \
    teach/gapex \
    teach/glossary \
    teach/grammar \
    teach/gstart \
    teach/id3 \
    teach/induce_rules.p \
    teach/latex \
    teach/latex.tex \
    teach/matcharrow \
    teach/matchcollect \
    teach/matches \
    teach/mini.eliza \
    teach/netstart \
    teach/newsolver \
    teach/objectclass \
    teach/oop \
    teach/pictures \
    teach/popcore \
    teach/pop11_project \
    teach/primer \
    teach/progstyle \
    teach/projects \
    teach/proposals \
    teach/quickved \
    teach/random \
    teach/rc_demo \
    teach/rc_demo \
    teach/rc_linepic \
    teach/recursion \
    teach/reports \
    teach/revise \
    teach/respond \
    teach/river \
    teach/river2 \
    teach/river2.p \
    teach/riverchat \
    teach/searching \
    teach/sets \
    teach/sets.ans \
    teach/sets2 \
    teach/sets2.ans \
    teach/stack \
    teach/storygrammar \
    teach/teach \
    teach/telnetkeys \
    teach/tower \
    teach/Unix.intro \
    teach/unix.intro \
    teach/vars \
    teach/vars_and_lvars \
    teach/ved \
    teach/vednotes \
    teach/vedpop \
    teach/vedproc \
    teach/vedtips \
    teach/waltz \
    teach/waltz2 \
    help/ARGS \
    help/XptDeferApply \
    help/arrayfile \
    help/bye \
    help/cdiff \
    help/compilehere \
    help/concat_strings \
    help/define \
    help/doesmatch \
    help/dounix \
    help/exit \
    help/get_command_output \
    help/go \
    help/inorout \
    help/linux.poplog \
    help/ncdxtermkeys \
    help/pattern_instance \
    help/rc_background \
    help/rc_circle \
    help/rc_linepic \
    help/rc_mouse_coords \
    help/rc_swap_context \
    help/rc_window_coords \
    help/rc_window_dimensions \
    help/read_lists_in_file \
    help/readin_shell_output \
    help/readpattern \
    help/revisepop \
    help/run.background \
    help/summarise \
    help/shell \
    help/type \
    help/unix.commands \
    help/ved_arrows \
    help/ved_aspell \
    help/ved_autosave \
    help/ved_bg \
    help/ved_browse \
    help/ved_calc \
    help/ved_cleanup \
    help/ved_day \
    help/ved_decode \
    help/ved_deletefile \
    help/ved_fileheader \
    help/ved_headers \
    help/ved_getit \
    help/ved_grep \
    help/ved_lockfile \
    help/ved_mli \
    help/ved_mlo \
    help/ved_procheader \
    help/ved_psprint \
    help/ved_purgefiles \
    help/ved_resetvars \
    help/ved_respond \
    help/ved_sortmr \
    help/ved_ispell \
    help/ved_ss \
    help/ved_tli \
    help/ved_tlli \
    help/ved_tlo \
    help/ved_unix \
    help/ved_vman \
    help/vedmemfile \
    help/vedncdxtermkeys \
    help/which_values \
    help/window_dimensions \
    help/xplatform \
    help/xtermkeys \
    setup/ \
    ved_latex \
    ref/doc_index \
    | gzip > $poplocal/local/bhamteach.tar.gz


echo 'created compressed tar file'

ls -l $poplocal/local/ftp/bhamteach.tar.gz

cp -p $poplocal/local/com/mkbhamteachtar $poplocal/local/ftp/com

rm -f COPYRIGHT
