diff options
author | Sascha Schumann <sascha@apache.org> | 2000-05-04 20:17:22 +0000 |
---|---|---|
committer | Sascha Schumann <sascha@apache.org> | 2000-05-04 20:17:22 +0000 |
commit | e034386cd845408a7c31a699d5b26065eabccd48 (patch) | |
tree | cd27d247e94ef713d0341192a1361f35a9853a33 /build/fastgen.sh | |
parent | d06207a32eb461802b2cac052d9c6d3eab08227f (diff) | |
download | httpd-e034386cd845408a7c31a699d5b26065eabccd48.tar.gz |
Move the generating empty deps stuff into fastgen.sh. The .deps files
are only used by Makefiles which are created by fastgen.sh, so fastgen
is the natural place to create them.
The "portable dirname" regex has been changed to remove any number of
trailing slashes. Just in case. :)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85139 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/fastgen.sh')
-rwxr-xr-x | build/fastgen.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build/fastgen.sh b/build/fastgen.sh index 3dc252df08..66097e3606 100755 --- a/build/fastgen.sh +++ b/build/fastgen.sh @@ -72,8 +72,7 @@ fi for makefile in $@; do echo "creating $makefile" -# portable dirname - dir=`echo $makefile|sed -e 's%[^/][^/]*$%%' -e 's%/$%%'` + dir=`echo $makefile|sed 's%/*[^/][^/]*$%%'` test -d "$dir/" || $mkdir_p "$dir/" (cat <<EOF @@ -85,4 +84,6 @@ VPATH = $top_srcdir/$dir EOF )| cat - $top_srcdir/$makefile.in > $makefile + touch "$top_builddir/$dir/.deps" + done |