aboutsummaryrefslogtreecommitdiffstats
path: root/make-version.pl
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2011-11-17 00:48:21 +0000
committerGerald Combs <gerald@wireshark.org>2011-11-17 00:48:21 +0000
commit5624924e4a52e5a68d587778a9ffe9573e6d416a (patch)
tree8cece83a5c06db76f574577aad1dedb35fea47a8 /make-version.pl
parent3f12c48aced9cc097cd792a4d4ac37d152fa2be4 (diff)
Create/update svnversion.h unless we're only running with --get-*.
svn path=/trunk/; revision=39892
Diffstat (limited to 'make-version.pl')
-rwxr-xr-xmake-version.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/make-version.pl b/make-version.pl
index 7ebe766ec0..92031d65c9 100755
--- a/make-version.pl
+++ b/make-version.pl
@@ -403,7 +403,7 @@ sub print_svn_revision
close OLDREV;
}
- if (! $set_release) { return; }
+ if (! $set_version && ! $set_release) { return; }
if ($needs_update) {
# print "Updating $version_file so it contains:\n$svn_revision";
@@ -463,6 +463,8 @@ sub get_config {
&read_svn_info();
+&print_svn_revision;
+
if ($set_version || $set_release) {
if ($set_version) {
print "Generating version information\n";
@@ -484,8 +486,6 @@ if ($set_version || $set_release) {
&update_versioned_files;
}
-&print_svn_revision;
-
__END__
=head1 NAM