diff options
author | Gerald Combs <gerald@wireshark.org> | 2008-02-18 18:08:14 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2008-02-18 18:08:14 +0000 |
commit | 7abeb02747a08671827dee1c2a6d6ff181cfa8d3 (patch) | |
tree | 2d8bebaabe2219ba7b774f9f325a8feb887bff2e /make-version.pl | |
parent | 6dd33f26f689d54282feca151d338b8ace5becb6 (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-x | make-version.pl | 3 |
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 } |