#!/bin/sh # make binary tarballs # This script assumes that the bootstrap script has already been run successfully. # makeSourceDist # e.g. might be gcc-2.95.2 for gcc 2.95.2 if [ ! -d /home/mice/Grid/MAUS-v3.2.1/third_party/install ] then echo "/home/mice/Grid/MAUS-v3.2.1/third_party/install 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 /home/mice/Grid/MAUS-v3.2.1/third_party/install; 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-2.1.1.0$extra.tgz bin include lib data $more