From 182ef027cb5c81446c0078cd1a116b08e0dd57c5 Mon Sep 17 00:00:00 2001 From: Gerardo Ganis Date: Thu, 29 Sep 2016 11:57:17 +0200 Subject: [PATCH] proof/utils: make sure PARs are created under the build dir To avoid issues with permissions. --- etc/proof/utils/makepbenchpars.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/etc/proof/utils/makepbenchpars.sh b/etc/proof/utils/makepbenchpars.sh index 02423120fb995..750d34bc4af60 100755 --- a/etc/proof/utils/makepbenchpars.sh +++ b/etc/proof/utils/makepbenchpars.sh @@ -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 \ @@ -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 @@ -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