You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by be...@hyperreal.org on 1999/12/19 17:36:49 UTC

cvs commit: apache-2.0/src/helpers build-modules-c.awk

ben         99/12/19 08:36:49

  Modified:    src/helpers build-modules-c.awk
  Log:
  Deal with newline at the end of the module list.
  
  Revision  Changes    Path
  1.2       +8 -1      apache-2.0/src/helpers/build-modules-c.awk
  
  Index: build-modules-c.awk
  ===================================================================
  RCS file: /export/home/cvs/apache-2.0/src/helpers/build-modules-c.awk,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build-modules-c.awk	1999/12/05 08:54:38	1.1
  +++ build-modules-c.awk	1999/12/19 16:36:49	1.2
  @@ -3,7 +3,14 @@
       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"