File indexing completed on 2025-08-05 08:13:26
0001
0002
0003 if [ $
0004 echo "Need argument for your build and install directory (in that order). Use the FULL path. Exiting."
0005 exit 1
0006 fi
0007
0008 BUILDDIR=$1
0009 INSTALLDIR=$2
0010
0011 echo '#!/bin/bash' > earlydata.sh
0012
0013 echo 'source /opt/sphenix/core/bin/sphenix_setup.sh -n new' >> earlydata.sh
0014 echo 'UN=${2}' >> earlydata.sh
0015 echo "source /opt/sphenix/core/bin/setup_local.sh ${INSTALLDIR}" >> earlydata.sh
0016 cat earlydata.config >> earlydata.sh
0017 chmod +x earlydata.sh
0018
0019 echo '#!/bin/bash' > addcommand.sh
0020 echo 'source /opt/sphenix/core/bin/sphenix_setup.sh -n new' >> addcommand.sh
0021 echo 'UN=${2}' >> addcommand.sh
0022 echo "source /opt/sphenix/core/bin/setup_local.sh ${INSTALLDIR}" >> addcommand.sh
0023 cat addcommand.config >> addcommand.sh
0024 chmod +x addcommand.sh
0025 cd ..
0026 THISREPODIR=`pwd`
0027
0028 mkdir -p $BUILDDIR/triggercountmodule
0029 cd $BUILDDIR/triggercountmodule
0030 echo "Entered "`pwd`
0031 $THISREPODIR/src/autogen.sh --prefix=$BUILDDIR/triggercountmodule
0032 make clean
0033 make install
0034
0035 cd $THISREPODIR/run
0036 echo "Entered "`pwd`
0037 mkdir -p output/err
0038 mkdir -p output/out
0039 mkdir -p output/added
0040 mkdir -p subs
0041 mkdir -p lists
0042 mkdir -p /sphenix/tg/tg01/jets/$USER/trigcount
0043
0044 echo "Done setting up!"