#!/bin/csh
### --- The University of Birmingham 1997. --------------------------------
### $poplocal/local/ftp/bin/mkpatterntar
# Aaron Sloman 28 Oct 1997
# 9 Mar 2000 - extended to include doesmatch and while_matching

# Make sure this is invoked in the ftp directory

cd $poplocal/local/ftp

pwd

echo "removing pattern.tar.gz"

ls -l pattern.tar.gz

rm pattern.tar.gz

echo "rebuilding patterntar file"


tar cf - lib/readpattern.p auto/\!.p help/readpattern teach/matches \
    auto/doesmatch.p lib/newmatches.p auto/while_matching.p \
    help/doesmatch | gzip > pattern.tar.gz

ls -l pattern.tar.gz

echo "done"
