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

# Ensure this is invoked in the ftp directory

cd $poplocal/local/ftp

pwd

ls -l linuxterm.tar.gz

echo "removing linuxterm.tar.gz"

rm linuxterm.tar.gz

echo "rebuilding linuxterm.tar file"

rm linuxterm/AATAR*

# Now work in linuxterm directory

cd linuxterm
touch "AATARBUILDlinuxterm-`date +%F`"

ls -Ll * > AATARFILElinuxterm.LATEST

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

# Now work in superdirectory
cd ..
# NB must follow links for this to work, hence -h
tar cfh - linuxterm | gzip > linuxterm.tar.gz


ls -l linuxterm.tar.gz

echo "done"
