#!/bin/csh
### --- The University of Birmingham 2001. ----------------------------
### $poplocal/local/ftp/bin/mkattachtar
# Aaron Sloman -- 11 Feb 2001

# Ensure this is invoked in the ftp directory

cd $poplocal/local/ftp

pwd

ls -l attach.tar.gz

echo "removing attach.tar.gz"

rm attach.tar.gz

echo "rebuilding attach.tar file"

rm attach/AATAR*

# Now work in attach directory

cd attach
touch "AATARBUILDattach`date`"

ls -lLt */* | head -10 > AATARFILEattach.LATEST

# cp -p new/install.txt INSTALL.TXT

# NB must follow links for this to work, hence -h
tar cfh - * | gzip > ../attach.tar.gz

cd ..

ls -l attach.tar.gz

echo "done"
