Skip to content

Commit

Permalink
proof/utils: make sure PARs are created under the build dir
Browse files Browse the repository at this point in the history
To avoid issues with permissions.
  • Loading branch information
gganis committed Sep 29, 2016
1 parent 02e74d7 commit 182ef02
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions etc/proof/utils/makepbenchpars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ MODDIR=$ROOT_SRCDIR/proof/proofbench
MODDIRS=$MODDIR/src
MODDIRI=$MODDIR/inc
PBPARDIR=$ROOT_BUILDDIR/etc/proof/proofbench
PARBLDDIR=$ROOT_BUILDDIR/proof/proofbench

##### ProofBenchDataSel PAR file #####
if test "x$PARNAME" = "xProofBenchDataSel"; then
PARDIR=$MODDIRS/ProofBenchDataSel
PARDIR=$PARBLDDIR/ProofBenchDataSel
PARH="$ROOT_SRCDIR/test/Event.h $MODDIRI/TProofBenchTypes.h \
$MODDIRI/TSelEventGen.h $MODDIRI/TSelEvent.h $MODDIRI/TSelHandleDataSet.h"
PARS="$ROOT_SRCDIR/test/Event.cxx \
Expand All @@ -45,7 +46,7 @@ if test "x$PARNAME" = "xProofBenchDataSel"; then
##### ProofBenchCPUSel PAR file #####
elif test "x$PARNAME" = "xProofBenchCPUSel"; then

PARDIR=$MODDIRS/ProofBenchCPUSel
PARDIR=$PARBLDDIR/ProofBenchCPUSel
PARH="$MODDIRI/TProofBenchTypes.h $MODDIRI/TSelHist.h"
PARS=$MODDIRS/TSelHist.cxx
PARF=$PBPARDIR/ProofBenchCPUSel.par
Expand Down Expand Up @@ -76,7 +77,7 @@ echo " return 0;" >> $PARINF/SETUP.C
echo "}" >> $PARINF/SETUP.C

builddir=`pwd`
cd $MODDIRS
cd $PARBLDDIR
par=`basename $PARF`
pard=`basename $PARDIR`
tar cf - $pard | gzip > $par || exit 1
Expand Down

0 comments on commit 182ef02

Please sign in to comment.