remove extra space in REVISION
[infrastructure.git] / scripts / nightly-build.sh
index dd513f9..c281cb7 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+# use svn propset svn:keywords Revision to enable this
+REVISION=$(echo '$Revision$' | sed -e 's,\$,,g' -e 's,^\w*:\s,,' )
+
 COMMAND=$(basename $0)
 ROOT=/build
 CVSROOT=":pserver:anon@cvs.planet-lab.org:/cvs"
@@ -86,6 +89,7 @@ function show_env () {
 
 function usage () {
   echo "Usage: $COMMAND [option] make-targets"
+  echo "This is revision $REVISION"
   echo "Supported options"
   echo " -v verbose"
   echo " -d CVSROOT"