forked from osmocom/wireshark
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
This commit is contained in:
parent
b4ce593083
commit
78ef4cdd88
|
@ -255,8 +255,7 @@ sub print_svn_version
|
||||||
$revision . "\"\n" .
|
$revision . "\"\n" .
|
||||||
"#define SVNPATH \"" . $repo_path . "\"\n";
|
"#define SVNPATH \"" . $repo_path . "\"\n";
|
||||||
} else {
|
} else {
|
||||||
$svn_version = "#define SVNVERSION \"SVN Rev Unknown\"\n" .
|
$svn_version = "\n";
|
||||||
"#define SVNPATH \"unknown\"\n";
|
|
||||||
}
|
}
|
||||||
if (open(OLDVER, "<$version_file")) {
|
if (open(OLDVER, "<$version_file")) {
|
||||||
my $old_svn_version = <OLDVER> . <OLDVER>;
|
my $old_svn_version = <OLDVER> . <OLDVER>;
|
||||||
|
@ -333,6 +332,8 @@ if ($svn_info_cmd) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print "This is not a SVN build.\n";
|
print "This is not a SVN build.\n";
|
||||||
|
$last_change = 0;
|
||||||
|
$revision = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&print_svn_version;
|
&print_svn_version;
|
||||||
|
|
Loading…
Reference in New Issue