From: Guenter Knauf Date: Fri, 11 Jan 2008 15:52:39 +0000 (+0000) Subject: added hack to fetch copyright string. X-Git-Tag: 2.3.0~1034 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6a8557ecd382f519d18bdbdcc4f76e15f489597;p=apache added hack to fetch copyright string. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@611210 13f79535-47bb-0310-9956-ffa450edef68 --- 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 ""; }