~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to srclib/apr/build/nw_ver.awk

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
BEGIN {
 
2
 
 
3
  # fetch APR version numbers from input file and writes them to STDOUT
 
4
 
 
5
  while ((getline < ARGV[1]) > 0) {
 
6
    if (match ($0, /^#define APR_MAJOR_VERSION/)) {
 
7
      ver_major = $3;
 
8
    }
 
9
    else if (match ($0, /^#define APR_MINOR_VERSION/)) {
 
10
      ver_minor = $3;
 
11
    }
 
12
    else if (match ($0, /^#define APR_PATCH_VERSION/)) {
 
13
      ver_str_patch = $3;
 
14
      if (match (ver_str_patch, /[0-9][0-9]*/)) {
 
15
         ver_patch = substr(ver_str_patch, RSTART, RLENGTH); 
 
16
      }
 
17
    }
 
18
  }
 
19
  ver = ver_major "," ver_minor "," ver_patch;
 
20
  ver_str = ver_major "." ver_minor "." ver_str_patch;
 
21
 
 
22
  print "VERSION = " ver "";
 
23
  print "VERSION_STR = " ver_str "";
 
24
 
 
25
}