aboutsummaryrefslogtreecommitdiffstats
path: root/make-version.pl
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2008-02-18 18:08:14 +0000
committerGerald Combs <gerald@wireshark.org>2008-02-18 18:08:14 +0000
commit7abeb02747a08671827dee1c2a6d6ff181cfa8d3 (patch)
tree2d8bebaabe2219ba7b774f9f325a8feb887bff2e /make-version.pl
parent6dd33f26f689d54282feca151d338b8ace5becb6 (diff)
If we have an SVN revision number, use it as the build number under Windows
instead of "0". svn path=/trunk/; revision=24376
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
}