1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#!/bin/sh
# make binary tarballs
# This script assumes that the bootstrap script has already been run successfully.
# makeSourceDist <tarball directory> <extra name info>
# e.g. <extra name info> might be gcc-2.95.2 for gcc 2.95.2
if [ ! -d @prefix@ ]
then
echo "@prefix@ does not exist"
exit 1
fi
if [ ! -d $1 ]
then
echo "$1 does not exist"
exit 1
fi
if [ $# -eq 2 ]
then
extra="-$2"
fi
##set -x
# make sure we have the full path
thisdir=`pwd`
cd @prefix@; binarydir=`pwd`
cd $thisdir
cd $1; tardir=`pwd`
if [ -d $binarydir/doc ]
then
more=doc
fi
cd $binarydir;
# use option z to create compressed tar ball ... (8 MB instead of 28 :-) )
tar -zcf $tardir/clhep-@VERSION@$extra.tgz bin include lib data $more
|