aboutsummaryrefslogtreecommitdiffstats
path: root/make-version.pl
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2008-02-18 18:08:14 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2008-02-18 18:08:14 +0000
commitf6667f56c437027452534e7ea398d3ee5e6bddf6 (patch)
tree2d8bebaabe2219ba7b774f9f325a8feb887bff2e /make-version.pl
parentbc89c07c31dbfd85e914b1af05ec7aa71481e76b (diff)
If we have an SVN revision number, use it as the build number under Windows
instead of "0". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24376 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'make-version.pl')
-rwxr-xr-xmake-version.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/make-version.pl b/make-version.pl
index aacc846185..5a47943c43 100755
--- a/make-version.pl
+++ b/make-version.pl
@@ -198,6 +198,9 @@ sub update_config_nmake
if ($line =~ /^VERSION_EXTRA=/) {
$line = "VERSION_EXTRA=$package_string\n";
}
+ if ($line =~ /^VERSION_BUILD=/ && int($revision) > 0) {
+ $line = "VERSION_BUILD=$revision\n";
+ }
$contents .= $line
}