You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fu...@apache.org on 2008/01/11 16:52:41 UTC
svn commit: r611210 - /httpd/httpd/trunk/build/nw_ver.awk
Author: fuankg
Date: Fri Jan 11 07:52:39 2008
New Revision: 611210
URL: http://svn.apache.org/viewvc?rev=611210&view=rev
Log:
added hack to fetch copyright string.
Modified:
httpd/httpd/trunk/build/nw_ver.awk
Modified: httpd/httpd/trunk/build/nw_ver.awk
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/build/nw_ver.awk?rev=611210&r1=611209&r2=611210&view=diff
==============================================================================
--- httpd/httpd/trunk/build/nw_ver.awk (original)
+++ httpd/httpd/trunk/build/nw_ver.awk Fri Jan 11 07:52:39 2008
@@ -18,7 +18,12 @@
# 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 @@
print "VERSION = " ver_nlm "";
print "VERSION_STR = " ver_str "";
+ print "COPYRIGHT_STR = " copyright_str "";
}