summaryrefslogtreecommitdiff
path: root/build/fastgen.sh
diff options
context:
space:
mode:
authorSascha Schumann <sascha@apache.org>2000-04-30 15:50:42 +0000
committerSascha Schumann <sascha@apache.org>2000-04-30 15:50:42 +0000
commit6c2a300d10eea63d4e04cfe59035efe61f5dad08 (patch)
treed3e4e8768310c75a9803650232b28575437ad38a /build/fastgen.sh
parent88fdb2fda39477cf0dce529ff0e9a16af16b52a6 (diff)
downloadhttpd-6c2a300d10eea63d4e04cfe59035efe61f5dad08.tar.gz
Always create the target directory, if it does not exist. Also use the
Makefile template from the source tree. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85110 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/fastgen.sh')
-rwxr-xr-xbuild/fastgen.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/fastgen.sh b/build/fastgen.sh
index f7c2f5614c..51779ce73c 100755
--- a/build/fastgen.sh
+++ b/build/fastgen.sh
@@ -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