#!/bin/csh
#This script changes the name on the secret directory.

set FTP = pub/remail/secret
set DIR = /usr9/loki/Export-manager
set SECRET = floober$$

mv /usr9/ftp/$FTP/floober* /usr9/ftp/$FTP/$SECRET

#Make readme file for FTP site.
cat $DIR/README.no-export > /usr9/ftp/$FTP/README.no-export
echo  -n "Directory name last changed at: "  >> /usr9/ftp/$FTP/README.no-export
echo `date` >> /usr9/ftp/$FTP/README.no-export


#Make auto-reply file
cat $DIR/auto-reply.template > $DIR/auto-reply
echo $FTP/$SECRET  >> $DIR/auto-reply
echo "" >> $DIR/auto-reply
echo "ftp://nately.ucsd.edu/$FTP/$SECRET/Welcome.html" >> $DIR/auto-reply
echo "" >> $DIR/auto-reply
echo "" >> $DIR/auto-reply
echo "The directory name is changes every 30 minutes" >> $DIR/auto-reply
echo  -n "Directory name last changed at: "  >> $DIR/auto-reply
echo `date` >> $DIR/auto-reply
