]> granicus.if.org Git - apache/commitdiff
added hack to fetch copyright string.
authorGuenter Knauf <fuankg@apache.org>
Fri, 11 Jan 2008 15:52:39 +0000 (15:52 +0000)
committerGuenter Knauf <fuankg@apache.org>
Fri, 11 Jan 2008 15:52:39 +0000 (15:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@611210 13f79535-47bb-0310-9956-ffa450edef68

build/nw_ver.awk

index ea6981914b3326389e47931027b56a4a5b4c5c1b..00e0276c8f1bc5d84973aa1266fe234a25c05331 100644 (file)
@@ -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 "";
 
 }