]> granicus.if.org Git - apache/commitdiff
Deal with newline at the end of the module list.
authorBen Laurie <ben@apache.org>
Sun, 19 Dec 1999 16:36:49 +0000 (16:36 +0000)
committerBen Laurie <ben@apache.org>
Sun, 19 Dec 1999 16:36:49 +0000 (16:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84319 13f79535-47bb-0310-9956-ffa450edef68

build/build-modules-c.awk

index 0da842152e1fedbe20eda08c6058256fab248409..db35c75f69f0e8a1160bf998f59fa897689c9a58 100644 (file)
@@ -3,7 +3,14 @@ BEGIN {
     modules[n++] = "core"
     pmodules[pn++] = "core"
 } 
-{ modules[n++] = $1 ; pmodules[pn++] = $1 } 
+{
+    modules[n] = $1;
+    pmodules[pn] = $1;
+    gsub("\n","",modules[n]);
+    gsub("\n","",pmodules[pn]);
+    ++n;
+    ++pn;
+} 
 END {
     print "/*"
     print " * modules.c --- automatically generated by Apache"