summaryrefslogtreecommitdiff
path: root/build/nw_ver.awk
diff options
context:
space:
mode:
authorGuenter Knauf <fuankg@apache.org>2008-01-11 15:52:39 +0000
committerGuenter Knauf <fuankg@apache.org>2008-01-11 15:52:39 +0000
commitf6a8557ecd382f519d18bdbdcc4f76e15f489597 (patch)
tree4e97070403d19fc3b34fe3d4c762dd81323f7c40 /build/nw_ver.awk
parentd300b0e287fcefa2860f859d4356630306c23c36 (diff)
downloadhttpd-f6a8557ecd382f519d18bdbdcc4f76e15f489597.tar.gz
added hack to fetch copyright string.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@611210 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/nw_ver.awk')
-rw-r--r--build/nw_ver.awk8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/nw_ver.awk b/build/nw_ver.awk
index ea6981914b..00e0276c8f 100644
--- a/build/nw_ver.awk
+++ b/build/nw_ver.awk
@@ -18,7 +18,12 @@ BEGIN {
# fetch Apache version numbers from input file and writes them to STDOUT
while ((getline < ARGV[1]) > 0) {
- if (match ($0, /^#define AP_SERVER_MAJORVERSION_NUMBER /)) {
+ if (match ($0, /^#define AP_SERVER_COPYRIGHT \\/)) {
+ if (((getline < ARGV[1]) > 0) && (split($0, c, "\"") == 3)) {
+ copyright_str = c[2];
+ }
+ }
+ else if (match ($0, /^#define AP_SERVER_MAJORVERSION_NUMBER /)) {
ver_major = $3;
}
else if (match ($0, /^#define AP_SERVER_MINORVERSION_NUMBER /)) {
@@ -36,6 +41,7 @@ BEGIN {
print "VERSION = " ver_nlm "";
print "VERSION_STR = " ver_str "";
+ print "COPYRIGHT_STR = " copyright_str "";
}