diff options
author | Guenter Knauf <fuankg@apache.org> | 2008-01-11 16:52:39 +0100 |
---|---|---|
committer | Guenter Knauf <fuankg@apache.org> | 2008-01-11 16:52:39 +0100 |
commit | f6a8557ecd382f519d18bdbdcc4f76e15f489597 (patch) | |
tree | 4e97070403d19fc3b34fe3d4c762dd81323f7c40 /build | |
parent | *) mod_logio: Provide optional function to allow modules to adjust the (diff) | |
download | apache2-f6a8557ecd382f519d18bdbdcc4f76e15f489597.tar.xz apache2-f6a8557ecd382f519d18bdbdcc4f76e15f489597.zip |
added hack to fetch copyright string.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@611210 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r-- | build/nw_ver.awk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build/nw_ver.awk b/build/nw_ver.awk index ea6981914b..00e0276c8f 100644 --- a/build/nw_ver.awk +++ b/build/nw_ver.awk @@ -18,7 +18,12 @@ BEGIN { # fetch Apache version numbers from input file and writes them to STDOUT while ((getline < ARGV[1]) > 0) { - if (match ($0, /^#define AP_SERVER_MAJORVERSION_NUMBER /)) { + if (match ($0, /^#define AP_SERVER_COPYRIGHT \\/)) { + if (((getline < ARGV[1]) > 0) && (split($0, c, "\"") == 3)) { + copyright_str = c[2]; + } + } + else if (match ($0, /^#define AP_SERVER_MAJORVERSION_NUMBER /)) { ver_major = $3; } else if (match ($0, /^#define AP_SERVER_MINORVERSION_NUMBER /)) { @@ -36,6 +41,7 @@ BEGIN { print "VERSION = " ver_nlm ""; print "VERSION_STR = " ver_str ""; + print "COPYRIGHT_STR = " copyright_str ""; } |