summaryrefslogtreecommitdiff
path: root/bin/svn-revision
diff options
context:
space:
mode:
Diffstat (limited to 'bin/svn-revision')
-rwxr-xr-xbin/svn-revision5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/svn-revision b/bin/svn-revision
index 0d88b3b..c698135 100755
--- a/bin/svn-revision
+++ b/bin/svn-revision
@@ -25,7 +25,7 @@ if [ "x$FILE" = x ]; then
FILE="&1"
oldrev=''
else
- oldrev=`grep REVISION "$FILE" 2>/dev/null | head -n1 | cut -d' ' -f3`
+ oldrev=`grep REVISION "$FILE" 2>/dev/null | head -n1 | cut -d' ' -f4`
fi
if test -d "$TOP/.svn"; then
@@ -52,8 +52,9 @@ EOF
if [ "x$revnum" = x ]; then
echo '/* Subversion information not available */'
else
+ XRev='$Revision'
cat <<EOF
-#define REVISION $revnum
+#define REVISION "$XRev: $revnum \$"
EOF
fi