]> granicus.if.org Git - php/commitdiff
Remove unnecessary second cat invocation
authorSascha Schumann <sas@php.net>
Sun, 11 Jun 2000 10:33:39 +0000 (10:33 +0000)
committerSascha Schumann <sas@php.net>
Sun, 11 Jun 2000 10:33:39 +0000 (10:33 +0000)
build/fastgen.sh

index 803695a53638b1f5d18a883719763f641c787767..19628332caaabc0c11e99977b4500e484907c9b9 100755 (executable)
@@ -23,7 +23,7 @@
 # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
 ##############################################################################
-# $Id: fastgen.sh,v 1.6 2000-05-12 07:37:42 sas Exp $ 
+# $Id: fastgen.sh,v 1.7 2000-06-11 10:33:39 sas Exp $ 
 #
 
 srcdir=$1
@@ -43,19 +43,16 @@ fi
 
 for makefile in $@; do
   echo "creating $makefile"
-# portable dirname
   dir=`echo $makefile|sed 's%/*[^/][^/]*$%%'`
   $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
   
   test -z "$dir" || touch $dir/.deps
-
 done