]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fixed broken *_DECLARE_DATA section.
authorGuenter Knauf <fuankg@apache.org>
Fri, 17 Aug 2012 11:49:19 +0000 (11:49 +0000)
committerGuenter Knauf <fuankg@apache.org>
Fri, 17 Aug 2012 11:49:19 +0000 (11:49 +0000)
Seems our preprocessor is some crazy and inserts a blank
after replacing a define which made the awk script fail.
Patch submitted by: normw gknw net (Backport r1305192).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1374210 13f79535-47bb-0310-9956-ffa450edef68

build/make_nw_export.awk

index 93812c904b005c254618d57df6d0a2e04f9012cf..2461e815564f9d91ba070bba163c3b1304b75f06 100644 (file)
@@ -82,8 +82,8 @@ function add_symbol(sym_name) {
 }
 
 /^[ \t]*(extern[ \t]+)?AP[RU]?_DECLARE_DATA .*;/ {
-    gsub(/[*;\n\r]/, "", $NF)
-    gsub(/\[.*\]/, "", $NF)
+    gsub(/[*;\n\r]/, "")
+    gsub(/\[.*\]/, "")
     add_symbol($NF)
 }