httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r611210 - /httpd/httpd/trunk/build/nw_ver.awk
Date Fri, 11 Jan 2008 15:52:41 GMT
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 "";
 
 }
 



Mime
View raw message