[net.emacs] ftp'ing gnu emacs

rusty@sdcarl.UUCP (rusty c. wright) (08/22/85)

here are 2 shell scripts that i use to ftp the gnu emacs.  instead of
copying the .tar file i copy the files directly from the dist
directory.  the 1st shell script is a front-end to the others; it does
a for loop for each subdirectory of the dist directory.  the name of
the 1st shell script is "copy".  the other shell scripts are named
after the directory that they copy: "copyetc", "copylisp", "copyman",
"copysrc", and "copyinfo".  these are actually all identical (net
result of a total of 2 shell scripts) and are just hard links to each
other as there is a hack in it to figure out the name it was invoked
with.  i reinvoke ftp for each subdirectory in dist because i had
trouble with ftp when trying to do them all at once; something is
probably overflowing somewhere in ftp.  this also allows me to just
ftp a single directory if i should want to, by using just that
particular shell script.

=====> copy <====

#! /bin/sh
for DIR in man etc info lisp src
do

sh -${-} copy${DIR}

done

cd ${HOME}/emacs
ftp mit-prep << EOF
verbose
prompt
cd /u2/emacs/dist
mget README INSTALL
quit
EOF

sync

=====> copyman <=====

#! /bin/sh

MYNAME=`basename ${0} | sed -e 's/\..*//'`
DIR=`expr ${MYNAME} : 'copy\(.*\)'`

rm -rf ${HOME}/emacs/${DIR}
mkdir ${HOME}/emacs/${DIR}
cd ${HOME}/emacs/${DIR}

ftp mit-prep << EOF
verbose
prompt
cd /u2/emacs/dist/${DIR}
mget *
quit
EOF

sync
-- 
	rusty c. wright
	{ucbvax,ihnp4,akgua,hplabs,sdcsvax}!sdcarl!rusty