Add missing Revision keyword expansions, so that --version tells the truth.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 3 Aug 2012 18:32:20 +0000 (18:32 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 3 Aug 2012 18:32:20 +0000 (18:32 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/utils@9601 cda61777-01e9-0310-a592-d414129be87e

after/after.c
buildrun/buildrun.c
reservoir/reservoir

index 5c8cbe4..af8b3a5 100644 (file)
@@ -219,7 +219,7 @@ void licence(void) {
 }
 
 void version(void) {
-#define SVN_REV "$Revision: 6566 $"
+#define SVN_REV "$Revision$"
     char rev[sizeof(SVN_REV)];
     char *p, *q;
 
index 6b89e52..35e90ef 100644 (file)
@@ -278,7 +278,7 @@ void licence(void) {
 }
 
 void version(void) {
-#define SVN_REV "$Revision: 8227 $"
+#define SVN_REV "$Revision$"
     char rev[sizeof(SVN_REV)];
     char *p, *q;
 
index da7f576..0267f24 100755 (executable)
@@ -44,7 +44,7 @@ while ($_=shift @ARGV) {
     print STDERR $usage;
     exit 0;
   } elsif ($arg eq "-version") {
-    if ('$Revision: 4876 $' =~ /Revision:\s+(\d+)/) {
+    if ('$Revision$' =~ /Revision:\s+(\d+)/) {
        print "reservoir revision $1\n";
     } else {
        print "reservoir: unknown revision\n";