fix support manual runs
authorthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Mon, 7 Apr 2008 10:21:05 +0000 (10:21 +0000)
committerthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Mon, 7 Apr 2008 10:21:05 +0000 (10:21 +0000)
scripts/all-builds.sh

index a327302..8db58b2 100755 (executable)
@@ -3,6 +3,17 @@
 # http://svn.one-lab.org/infrastructure/scripts/all-builds.sh
 # it is triggered every night at 0:05 french time on build.one-lab.org aka blitz.inria.fr
 
+COMMAND=$(basename $0)
+
+function usage () {
+    echo "Usage: $COMMAND"
+    echo "In manual mode you should export either of these"
+    echo "PLDISTROS FCDISTROS BITS RETRY TEST DRY_RUN"
+    exit 1
+}
+
+[[ -n "$@" ]] && usage
+
 # tuned for allowing manual re-runs, mostly for tests
 
 DEFAULT_PLDISTROS="planetlab onelab"