diff options
author | Ian Holsman <ianh@apache.org> | 2002-08-23 21:36:26 +0200 |
---|---|---|
committer | Ian Holsman <ianh@apache.org> | 2002-08-23 21:36:26 +0200 |
commit | 0082ce3fd8853b50cef3d7b49a88f8b854f62924 (patch) | |
tree | e39d7a8f4524d585aec2ff2f6856c5a943c759a2 /build/win32 | |
parent | fix breakage of dbm maps which was introduced in the previous commit (diff) | |
download | apache2-0082ce3fd8853b50cef3d7b49a88f8b854f62924.tar.xz apache2-0082ce3fd8853b50cef3d7b49a88f8b854f62924.zip |
Make version strings work properly with update macro definitions
Submitted by : Branko Cibej <brane@xbc.nu>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96503 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/win32')
-rw-r--r-- | build/win32/win32ver.awk | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/build/win32/win32ver.awk b/build/win32/win32ver.awk index 26fe37dcd2..f83ad5b089 100644 --- a/build/win32/win32ver.awk +++ b/build/win32/win32ver.awk @@ -35,12 +35,19 @@ BEGIN { } while ((getline < rel_h) > 0) { - if (match ($0, /^#define AP_SERVER_BASEREVISION "[^"]+"/)) { - ver = substr($0, RSTART + 32, RLENGTH - 33); + if (match ($0, /^#define AP_SERVER_MAJORVERSION "[^"]+"/)) { + ver_major = substr($3, 2, length($3) - 2); + } + else if (match ($0, /^#define AP_SERVER_MINORVERSION "[^"]+"/)) { + ver_minor = substr($3, 2, length($3) - 2); + } + else if (match ($0, /^#define AP_SERVER_PATCHLEVEL "[^"]+"/)) { + ver_patch = substr($3, 2, length($3) - 2); } } - verc = ver; + ver = ver_major "." ver_minor "." ver_patch; + verc = ver_major "," ver_minor "," ver_patch; gsub(/\./, ",", verc); if (build) { sub(/-.*/, "", verc) |