apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/build win32ver.awk
Date Thu, 16 Aug 2001 22:37:03 GMT
wrowe       01/08/16 15:37:03

  Modified:    build    win32ver.awk
  Log:
    Ugly, quick hack to get apr(-util) building without httpd
  
  Revision  Changes    Path
  1.2       +20 -14    apr/build/win32ver.awk
  
  Index: win32ver.awk
  ===================================================================
  RCS file: /home/cvs/apr/build/win32ver.awk,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- win32ver.awk	2001/08/16 22:10:27	1.1
  +++ win32ver.awk	2001/08/16 22:37:03	1.2
  @@ -39,21 +39,27 @@
         ver = substr($0, RSTART + 32, RLENGTH - 33);
       }
     }
  -
  -  verc = ver;
  -  gsub(/\./, ",", verc);
  -  if (build) {
  -    sub(/-.*/, "", verc)
  -    verc = verc "," build;
  -  } else if (sub(/-dev/, ",0", verc)) {
  -      ff = ff + 2;
  -  } else if (!sub(/-alpha/, ",10", verc)  \
  -          && !sub(/-beta/, ",100", verc)  \
  -          && !sub(/-gold/, ",200", verc)) {
  -    sub(/-.*/, "", verc);
  -    verc = verc "," 0;
  +  if (ver) {
  +    verc = ver;
  +    gsub(/\./, ",", verc);
  +    if (build) {
  +      sub(/-.*/, "", verc)
  +      verc = verc "," build;
  +    } else if (sub(/-dev/, ",0", verc)) {
  +        ff = ff + 2;
  +    } else if (!sub(/-alpha/, ",10", verc)  \
  +            && !sub(/-beta/, ",100", verc)  \
  +            && !sub(/-gold/, ",200", verc)) {
  +      sub(/-.*/, "", verc);
  +      verc = verc "," 0;
  +    }
  +  } else {
  +# XXX Gotta fix this for non-httpd installs :(
  +    ver = "0.0.0.0"
  +    verc = "0,0,0,0"
  +    ff = ff + 2;
     }
  -  
  +
     if (length(vendor)) {
       ff = ff + 8;
     }
  
  
  

Mime
View raw message