]> granicus.if.org Git - apache/commitdiff
Always create the target directory, if it does not exist. Also use the
authorSascha Schumann <sascha@apache.org>
Sun, 30 Apr 2000 15:50:42 +0000 (15:50 +0000)
committerSascha Schumann <sascha@apache.org>
Sun, 30 Apr 2000 15:50:42 +0000 (15:50 +0000)
Makefile template from the source tree.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85110 13f79535-47bb-0310-9956-ffa450edef68

build/fastgen.sh

index f7c2f5614cd92a8a2888270e580257e10e921be0..51779ce73cb7263f4b21f65166307902f9f5d869 100755 (executable)
@@ -74,6 +74,7 @@ for makefile in $@; do
   echo "creating $makefile"
 # portable dirname
   dir=`echo $makefile|sed 's%[^/][^/]*$%%'`
+  test -d "$dir/" || $mkdir_p "$dir/"
 
   (cat <<EOF
 top_srcdir   = $top_srcdir
@@ -82,6 +83,6 @@ srcdir       = $top_srcdir/$dir
 builddir     = $top_builddir/$dir
 VPATH        = $top_srcdir/$dir
 EOF
-)| cat - $makefile.in > $makefile
+)| cat - $top_srcdir/$makefile.in > $makefile
 
 done