71 lines
1.5 KiB
Plaintext
71 lines
1.5 KiB
Plaintext
|
#!/bin/sh
|
||
|
# things to change in this file
|
||
|
# VERSION
|
||
|
# FTPDIR
|
||
|
|
||
|
# *** change below in :
|
||
|
# scsh/RELEASE
|
||
|
# scsh/scsh/minor-version
|
||
|
# scsh/scsh/oldtop.scm
|
||
|
# scsh/scsh/scsh-version.scm
|
||
|
# scsh/bin/scsh-test
|
||
|
# ftp/scsh/README
|
||
|
VERSION=-0.5.1
|
||
|
FTPDIR=${HOME}/ftp/scsh
|
||
|
#FTPDIR=${HOME}/ftp/users/bdc
|
||
|
|
||
|
CVSROOT=/sw/scsh
|
||
|
export CVSROOT
|
||
|
|
||
|
TMPSPACE=/dl/bdc
|
||
|
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
||
|
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 {} \;
|
||
|
|
||
|
echo Removing bin directory
|
||
|
rm -rf scsh/bin
|
||
|
|
||
|
# fix time stampes for building
|
||
|
echo Touching files to fix build dependencies
|
||
|
scsh-touch
|
||
|
|
||
|
# "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
|
||
|
rm ${FTPDIR}/scsh.tar.gz
|
||
|
ln -s scsh${VERSION}.tar.gz ${FTPDIR}/scsh.tar.gz
|
||
|
else
|
||
|
echo No VERSION therefore no symlink needed
|
||
|
fi
|
||
|
|
||
|
# clean up
|
||
|
echo Removing tree
|
||
|
rm -r scsh${VERSION}
|
||
|
|
||
|
# split binary up
|
||
|
echo Spliting tarball
|
||
|
rm -r ${FTPDIR}/split
|
||
|
mkdir ${FTPDIR}/split
|
||
|
cd ${FTPDIR}/split
|
||
|
split -b 100k ../scsh${VERSION}.tar.gz scsh${VERSION}.tar.gz-x
|
||
|
|
||
|
# That's all folks
|
||
|
echo Done.
|