From 0d3244a6fe3f44c0d626f8fe08d5fa0ca78e65d2 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 14 Feb 2006 15:14:41 +0000 Subject: Split the version under Windows into its major, minor, and micro components. Use them to build the VERSION, RC_VERSION, and manifest versions (the latter two are picky about formatting). This would probably be useful on the autoconf side, but I didn't see an obvious way to implement it. svn path=/trunk/; revision=17302 --- config.nmake | 9 +++++++-- image/Makefile.nmake | 5 +++-- image/ethereal.exe.manifest.in | 2 +- make-version.pl | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/config.nmake b/config.nmake index 018ee4c75e..6b574215f2 100644 --- a/config.nmake +++ b/config.nmake @@ -4,7 +4,12 @@ # in the file README.win32. # The current Ethereal version -VERSION=0.10.14 +# VERSION_EXTRA can be used for custom builds, e.g. "-SVN-12345" +VERSION_MAJOR=0 +VERSION_MINOR=10 +VERSION_MICRO=14 +VERSION_EXTRA= +VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)$(VERSION_EXTRA) # # The RC_VERSION should be comma-separated, not dot-separated, @@ -17,7 +22,7 @@ VERSION=0.10.14 # number to be correctly displayed in the explorer properties dialog # for the executables, and XP's tooltip, rather than 0.0.0.0." # -RC_VERSION=0,10,14 +RC_VERSION=$(VERSION_MAJOR),$(VERSION_MINOR),$(VERSION_MICRO) # The version of the wiretap library WTAP_VERSION=0.3 diff --git a/image/Makefile.nmake b/image/Makefile.nmake index c9689912c1..a765ef0b22 100644 --- a/image/Makefile.nmake +++ b/image/Makefile.nmake @@ -8,8 +8,9 @@ ALL_RC=ethereal.rc libethereal.rc tethereal.rc capinfos.rc editcap.rc text2pcap. all : $(ALL_RC) ethereal.exe.manifest: ethereal.exe.manifest.in ..\config.nmake - sed -e s/@VERSION@/$(VERSION)/ \ - -e s/@RC_VERSION@/$(RC_VERSION)/ \ + sed -e s/@VERSION_MAJOR@/$(VERSION_MAJOR)/ \ + -e s/@VERSION_MINOR@/$(VERSION_MINOR)/ \ + -e s/@VERSION_MICRO@/$(VERSION_MICRO)/ \ < ethereal.exe.manifest.in > $@ ethereal.rc : ethereal.rc.in ethereal.exe.manifest ..\config.nmake diff --git a/image/ethereal.exe.manifest.in b/image/ethereal.exe.manifest.in index a64d5a50d6..d501606126 100755 --- a/image/ethereal.exe.manifest.in +++ b/image/ethereal.exe.manifest.in @@ -1,7 +1,7 @@ ) { - if ($line =~ /^VERSION=(\d+)\.(\d+).(\d+)/) { - $line = "VERSION=$1.$2.$3$package_string\n"; + if ($line =~ /^VERSION_EXTRA=/) { + $line = "VERSION_EXTRA=$package_string\n"; } $contents .= $line } -- cgit v1.2.1