git.samba.org
/
metze
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4ce593
)
Don't report svn version if not building from svn. Change prompted by http://ask...
author
Chris Maynard
<Christopher.Maynard@GTECH.COM>
Thu, 4 Aug 2011 20:20:51 +0000
(20:20 -0000)
committer
Chris Maynard
<Christopher.Maynard@GTECH.COM>
Thu, 4 Aug 2011 20:20:51 +0000
(20:20 -0000)
svn path=/trunk/; revision=38340
make-version.pl
patch
|
blob
|
history
diff --git
a/make-version.pl
b/make-version.pl
index 74f2a10ad1ad92de0af0ce37d4091c1dcf9029f3..a9ab79953af664d2ff912a1c00977d00a3e0a51f 100755
(executable)
--- 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;