]> granicus.if.org Git - apache/commitdiff
Avoid second invocation of cat.
authorSascha Schumann <sascha@apache.org>
Sun, 11 Jun 2000 11:43:45 +0000 (11:43 +0000)
committerSascha Schumann <sascha@apache.org>
Sun, 11 Jun 2000 11:43:45 +0000 (11:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85511 13f79535-47bb-0310-9956-ffa450edef68

build/fastgen.sh

index 66097e3606b98fddb46125b8cda2877166a0fe68..8fa020a82b965bfc79c2969819684ea3e875d1df 100755 (executable)
@@ -75,15 +75,13 @@ for makefile in $@; do
   dir=`echo $makefile|sed 's%/*[^/][^/]*$%%'`
   test -d "$dir/" || $mkdir_p "$dir/"
 
-  (cat <<EOF
+  cat - $top_srcdir/$makefile.in <<EOF >$makefile
 top_srcdir   = $top_srcdir
 top_builddir = $top_builddir
 srcdir       = $top_srcdir/$dir
 builddir     = $top_builddir/$dir
 VPATH        = $top_srcdir/$dir
 EOF
-)| cat - $top_srcdir/$makefile.in > $makefile
 
   touch "$top_builddir/$dir/.deps"
-
 done