summaryrefslogtreecommitdiff
path: root/helpers/build-modules-c.awk
diff options
context:
space:
mode:
authorben <ben@13f79535-47bb-0310-9956-ffa450edef68>1999-12-19 16:36:49 +0000
committerben <ben@13f79535-47bb-0310-9956-ffa450edef68>1999-12-19 16:36:49 +0000
commit7dde78c30b335aff8ebe34562f02f4db88bb882d (patch)
tree34ccc7439005715d45d29273256f21a808abc98e /helpers/build-modules-c.awk
parent98967ff5756b564a0941e5ecaf08bcf0f06ec49d (diff)
downloadlibapr-7dde78c30b335aff8ebe34562f02f4db88bb882d.tar.gz
Deal with newline at the end of the module list.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59539 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'helpers/build-modules-c.awk')
-rw-r--r--helpers/build-modules-c.awk9
1 files changed, 8 insertions, 1 deletions
diff --git a/helpers/build-modules-c.awk b/helpers/build-modules-c.awk
index 0da842152..db35c75f6 100644
--- a/helpers/build-modules-c.awk
+++ b/helpers/build-modules-c.awk
@@ -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"