aboutsummaryrefslogtreecommitdiffstats
path: root/make-version.pl
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2010-11-08 17:10:35 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2010-11-08 17:10:35 +0000
commitad78dfe2c0ad09cc1cd1f8065d68a0333c161276 (patch)
treee532a95d71d92b847eae47ca1deca4f03fbd4ed3 /make-version.pl
parent3100cc2d408095237d38767716ff7b75f5404eb2 (diff)
If svn not found, print "Unknown" revision message.
svn path=/trunk/; revision=34807
Diffstat (limited to 'make-version.pl')
-rwxr-xr-xmake-version.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/make-version.pl b/make-version.pl
index 48eca2debc..f59ba21495 100755
--- a/make-version.pl
+++ b/make-version.pl
@@ -254,8 +254,8 @@ sub print_svn_version
$revision . "\"\n" .
"#define SVNPATH \"" . $repo_path . "\"\n";
} else {
- $svn_version = "/* #define SVNVERSION \"\" */\n" .
- "/* #define SVNPATH \"\" */\n";
+ $svn_version = "#define SVNVERSION \"SVN Rev Unknown\"\n" .
+ "#define SVNPATH \"unknown\"\n";
}
if (open(OLDVER, "<$version_file")) {
my $old_svn_version = <OLDVER> . <OLDVER>;