httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r563730 - /httpd/httpd/branches/2.2.x/build/nw_ver.awk
Date Wed, 08 Aug 2007 03:17:02 GMT
Author: fuankg
Date: Tue Aug  7 20:17:01 2007
New Revision: 563730

URL: http://svn.apache.org/viewvc?view=rev&rev=563730
Log:
fixed version string for dev builds.

Modified:
    httpd/httpd/branches/2.2.x/build/nw_ver.awk

Modified: httpd/httpd/branches/2.2.x/build/nw_ver.awk
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/build/nw_ver.awk?view=diff&rev=563730&r1=563729&r2=563730
==============================================================================
--- httpd/httpd/branches/2.2.x/build/nw_ver.awk (original)
+++ httpd/httpd/branches/2.2.x/build/nw_ver.awk Tue Aug  7 20:17:01 2007
@@ -27,14 +27,16 @@
     else if (match ($0, /^#define AP_SERVER_PATCHLEVEL_NUMBER/)) {
       ver_patch = $3;
     }
-    else if (match ($0, /^#define AP_SERVER_ADD_STRING /)) {
-        ver_str_release = substr($3, 2, length($3) - 2);
+    else if (match ($0, /^#define AP_SERVER_DEVBUILD_BOOLEAN/)) {
+      ver_devbuild = $3;
     }
   }
-  ver = ver_major "," ver_minor "," ver_patch;
-  ver_str = ver_major "." ver_minor "." ver_patch ver_str_release;
+  ver_nlm = ver_major "," ver_minor "," ver_patch;
+  ver_str = ver_major "." ver_minor "." ver_patch (ver_devbuild ? "-dev" : "");
 
-  print "VERSION = " ver "";
+  print "VERSION = " ver_nlm "";
   print "VERSION_STR = " ver_str "";
 
 }
+
+



Mime
View raw message