/etc/root/vmc/g3_makedist.sh is in libroot-montecarlo-vmc-dev 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | #!/bin/sh
# $Id$
# ---------------------------------------------------------------------
# Script to produce source and optionally binary distribution of geant3.
# Called by main Makefile.
#
# According to:
# $ROOTSYS/build/unix/makedist.sh
# Author: Fons Rademakers, 29/2/2000
#
# Usage: makedist.sh [lib]
#
# By I.Hrivnacova, 7/10/2002
CURDIR=`pwd`
# gmake is called from geant3
cd ..
if [ "x$1" = "xlib" ]; then
GCC_VERS=""
MAKELIB="lib"
elif [ "x$2" = "xlib" ]; then
GCC_VERS=$1
MAKELIB="lib"
else
GCC_VERS=$1
fi
VERSION=`cat geant3/version_number`
MACHINE=`root-config --arch`
if [ "x$MAKELIB" = "xlib" ]; then
if [ "x$GCC_VERS" = "x" ]; then
TYPE=$MACHINE.
else
TYPE=$MACHINE.$GCC_VERS.
fi
else
TYPE=""
fi
TARFILE="geant321+_vmc".$VERSION.$TYPE"tar"
TAR=`which gtar`
dum=`echo $TAR | grep "no gtar"`
stat=$?
if [ "$TAR" = '' ] || [ $stat = 0 ]; then
TAR="tar cvf"
rm -f $TARFILE.gz
EXCLUDE=
else
TAR=$TAR" zcvf"
rm -f $TARFILE.gz
TARFILE=$TARFILE".gz"
EXCLUDE="--exclude .svn --exclude tmp --exclude geant3/tgt_*"
fi
SOURCES=`ls geant3`
SOURCES=`echo $SOURCES | sed s/"tgt_$MACHINE"//g`
if [ "$MAKELIB" != "lib" ] ; then
SOURCES=`echo $SOURCES | sed s/lib//g`
fi
for param in $SOURCES; do
PSOURCES="$PSOURCES geant3/$param"
done
$TAR $TARFILE $EXCLUDE $PSOURCES
cd $CURDIR
exit 0
|