1997-04-26 13:44:53 -04:00
|
|
|
#!/bin/sh
|
|
|
|
# things to change in this file
|
|
|
|
# VERSION
|
|
|
|
# FTPDIR
|
|
|
|
|
|
|
|
# *** change below in :
|
1997-06-08 22:30:37 -04:00
|
|
|
# ~/scsh/RELEASE
|
|
|
|
# ~/scsh/scsh/minor-version
|
|
|
|
# ~/scsh/scsh/oldtop.scm
|
|
|
|
# ~/scsh/scsh/scsh-version.scm
|
|
|
|
# ~/scsh/bin/scsh-test
|
|
|
|
# /zu/bdc/ftp/scsh/README
|
|
|
|
#
|
|
|
|
# also:
|
1999-10-03 17:34:23 -04:00
|
|
|
#
|
1997-06-08 22:30:37 -04:00
|
|
|
# rm /zu/bdc/ftp/scsh/README~
|
|
|
|
#
|
1999-06-21 00:35:42 -04:00
|
|
|
VERSION=-0.5.2
|
|
|
|
FTPDIR=${HOME}/ftp/users/bdc
|
1997-04-26 13:44:53 -04:00
|
|
|
|
1999-06-21 00:35:42 -04:00
|
|
|
CVSROOT=/projects/express/scsh-cvs
|
1997-04-26 13:44:53 -04:00
|
|
|
export CVSROOT
|
|
|
|
|
1999-06-21 00:35:42 -04:00
|
|
|
TMPSPACE=${HOME}/tmp
|
1997-04-26 13:44:53 -04:00
|
|
|
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
|
|
|
umask 002
|
|
|
|
# go to temp space
|
|
|
|
echo Making release for ${FTPDIR}/scsh${VERSION} in $TMPSPACE
|
|
|
|
cd $TMPSPACE
|
|
|
|
|
|
|
|
# checkout a fresh tree and prune CVS stuff
|
|
|
|
echo Checking out scsh
|
|
|
|
cvs checkout scsh
|
|
|
|
echo Removing CVS directories and .cvsignore files
|
|
|
|
find scsh/ \( -name CVS -o -name .cvsignore \) -exec rm -r {} \;
|
|
|
|
|
|
|
|
# fix time stampes for building
|
|
|
|
echo Touching files to fix build dependencies
|
1999-06-21 00:48:17 -04:00
|
|
|
scsh/bin/scsh-touch
|
|
|
|
|
|
|
|
echo Removing bin directory
|
|
|
|
rm -rf scsh/bin
|
1997-04-26 13:44:53 -04:00
|
|
|
|
|
|
|
# "untouch" .notify
|
|
|
|
echo Untouching .notify
|
|
|
|
rm scsh/.notify
|
|
|
|
|
|
|
|
# patch dir names and make tar
|
|
|
|
echo Making tar ball
|
|
|
|
mv scsh scsh${VERSION}
|
|
|
|
tar czvf ${FTPDIR}/scsh${VERSION}.tar.gz scsh${VERSION}/
|
|
|
|
|
|
|
|
# fix symlink
|
|
|
|
if [ $VERSION != "" ] ; then
|
|
|
|
echo Symlinking
|
1999-06-21 00:35:42 -04:00
|
|
|
rm -f ${FTPDIR}/scsh.tar.gz
|
1997-04-26 13:44:53 -04:00
|
|
|
ln -s scsh${VERSION}.tar.gz ${FTPDIR}/scsh.tar.gz
|
|
|
|
else
|
|
|
|
echo No VERSION therefore no symlink needed
|
|
|
|
fi
|
|
|
|
|
1999-10-03 17:34:23 -04:00
|
|
|
# copy RELEASE notes
|
|
|
|
echo Copying RELEASE notes
|
|
|
|
cp scsh${VERSION}/RELEASE ${FTPDIR}
|
|
|
|
|
1997-04-26 13:44:53 -04:00
|
|
|
# clean up
|
|
|
|
echo Removing tree
|
|
|
|
rm -r scsh${VERSION}
|
|
|
|
|
|
|
|
# split binary up
|
|
|
|
echo Spliting tarball
|
1999-06-21 00:35:42 -04:00
|
|
|
rm -rf ${FTPDIR}/split
|
1997-04-26 13:44:53 -04:00
|
|
|
mkdir ${FTPDIR}/split
|
|
|
|
cd ${FTPDIR}/split
|
|
|
|
split -b 100k ../scsh${VERSION}.tar.gz scsh${VERSION}.tar.gz-x
|
|
|
|
|
|
|
|
# That's all folks
|
|
|
|
echo Done.
|