remove extra space in REVISION
[infrastructure.git] / scripts / nightly-build.sh
index fd4ad6c..c281cb7 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/bash
 
-REVISION=$(echo '$Revision:$')
+# 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
@@ -88,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"