aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-08-04 20:20:51 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-08-04 20:20:51 +0000
commit78ef4cdd88c5a38c09fd68ae878efaa64cfae051 (patch)
treead690044b7bc6241705d33e6be605e818f42f4d9
parentb4ce593083c01adb391b4f1a04971d2f75706a70 (diff)
Don't report svn version if not building from svn. Change prompted by http://ask.wireshark.org/questions/5376/wireshark-161-title-shows-svn-rev-unknown-from-unknown.
svn path=/trunk/; revision=38340
-rwxr-xr-xmake-version.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/make-version.pl b/make-version.pl
index 74f2a10ad1..a9ab79953a 100755
--- a/make-version.pl
+++ b/make-version.pl
@@ -255,8 +255,7 @@ sub print_svn_version
$revision . "\"\n" .
"#define SVNPATH \"" . $repo_path . "\"\n";
} else {
- $svn_version = "#define SVNVERSION \"SVN Rev Unknown\"\n" .
- "#define SVNPATH \"unknown\"\n";
+ $svn_version = "\n";
}
if (open(OLDVER, "<$version_file")) {
my $old_svn_version = <OLDVER> . <OLDVER>;
@@ -333,6 +332,8 @@ if ($svn_info_cmd) {
}
} else {
print "This is not a SVN build.\n";
+ $last_change = 0;
+ $revision = 0;
}
&print_svn_version;