diff options
author | cmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-08-04 20:20:51 +0000 |
---|---|---|
committer | cmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-08-04 20:20:51 +0000 |
commit | c7947c5a3c9f4914b68096a5e91845371c643ce4 (patch) | |
tree | ad690044b7bc6241705d33e6be605e818f42f4d9 /make-version.pl | |
parent | 310e348716b4a9b9779112764acafc42a90d1e2f (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38340 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'make-version.pl')
-rwxr-xr-x | make-version.pl | 5 |
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; |