[Fusionforge-commits] r10888 - trunk/tests/scripts

Christian Bayle cbayle at libremir.placard.fr.eu.org
Thu Oct 7 23:07:06 CEST 2010


Author: cbayle
Date: 2010-10-07 23:07:05 +0200 (Thu, 07 Oct 2010)
New Revision: 10888

Modified:
   trunk/tests/scripts/fusionforge-build-and-test-rpm.sh
Log:
Make so WORKSPACE when not set is curent dir by default


Modified: trunk/tests/scripts/fusionforge-build-and-test-rpm.sh
===================================================================
--- trunk/tests/scripts/fusionforge-build-and-test-rpm.sh	2010-10-07 18:44:28 UTC (rev 10887)
+++ trunk/tests/scripts/fusionforge-build-and-test-rpm.sh	2010-10-07 21:07:05 UTC (rev 10888)
@@ -9,7 +9,11 @@
 export DB_NAME=gforge
 export CONFIGURED=true
 
-rm -fr $WORKSPACE/build $WORKSPACE/reports
+export CURDIR=`pwd`
+export WORKSPACE=${WORKSPACE:-$CURDIR}
+
+[ ! -d $WORKSPACE/build ] || rm -fr $WORKSPACE/build
+[ ! -d $WORKSPACE/reports ] || rm -fr $WORKSPACE/reports
 mkdir -p $WORKSPACE/build/packages $WORKSPACE/reports/coverage
 
 make -f Makefile.rh BUILDRESULT=$WORKSPACE/build/packages all




More information about the Fusionforge-commits mailing list