httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: httpd-2.0/build/win32 win32ver.awk
Date Sun, 22 Feb 2004 03:27:49 GMT
stoddard    2004/02/21 19:27:49

  Modified:    build/win32 win32ver.awk
  Log:
  Win32: Fix compile breakage
  
  Revision  Changes    Path
  1.8       +10 -7     httpd-2.0/build/win32/win32ver.awk
  
  Index: win32ver.awk
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/build/win32/win32ver.awk,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- win32ver.awk	9 Feb 2004 20:40:48 -0000	1.7
  +++ win32ver.awk	22 Feb 2004 03:27:49 -0000	1.8
  @@ -49,18 +49,21 @@
     }
   
     while ((getline < rel_h) > 0) {
  -    if (match ($0, /^#define AP_SERVER_MAJORVERSION "[^"]+"/)) {
  -      ver_major = substr($3, 2, length($3) - 2);
  +    if (match ($0, /^#define AP_SERVER_MAJORVERSION_NUMBER [^*]/)) {
  +      ver_major = $3;
       }
  -    else if (match ($0, /^#define AP_SERVER_MINORVERSION "[^"]+"/)) {
  -      ver_minor = substr($3, 2, length($3) - 2);
  +    else if (match ($0, /^#define AP_SERVER_MINORVERSION_NUMBER [^*]/)) {
  +      ver_minor = $3;
       }
  -    else if (match ($0, /^#define AP_SERVER_PATCHLEVEL "[^"]+"/)) {
  -      ver_patch = substr($3, 2, length($3) - 2);       
  +    else if (match ($0, /^#define AP_SERVER_PATCHLEVEL_NUMBER [^*]/)) {
  +      ver_patch = $3;
  +    }
  +    else if (match ($0, /^#define AP_SERVER_ADD_STRING [^"]+"/)) {
  +      ver_patch_modifier = substr($3, 2, length($3) - 2);
       }
     }
   
  -  ver = ver_major "." ver_minor "." ver_patch;
  +  ver = ver_major "." ver_minor "." ver_patch ver_patch_modifier;
     verc = ver_major "," ver_minor "," ver_patch;   
     gsub(/\./, ",", verc);
     if (build) {
  
  
  

Mime
View raw message