httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r563728 - /httpd/httpd/trunk/build/nw_ver.awk
Date Wed, 08 Aug 2007 03:09:52 GMT
Author: fuankg
Date: Tue Aug  7 20:09:51 2007
New Revision: 563728

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

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?view=diff&rev=563728&r1=563727&r2=563728
==============================================================================
--- httpd/httpd/trunk/build/nw_ver.awk (original)
+++ httpd/httpd/trunk/build/nw_ver.awk Tue Aug  7 20:09:51 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