diff options
author | Sascha Schumann <sascha@apache.org> | 2000-09-22 19:07:47 +0200 |
---|---|---|
committer | Sascha Schumann <sascha@apache.org> | 2000-09-22 19:07:47 +0200 |
commit | 7cb5b586764dcf8565aa28d531dd718a3e6ad79a (patch) | |
tree | 73226bcd6ea076486a3059bff0bdffda446c5101 /build/fastgen.sh | |
parent | mod_include now tweaks the subrequest output filter chain so that (diff) | |
download | apache2-7cb5b586764dcf8565aa28d531dd718a3e6ad79a.tar.xz apache2-7cb5b586764dcf8565aa28d531dd718a3e6ad79a.zip |
Add Convert-to-BSD-Makefiles-On-The-Fly system
Note 1: Only needed for BSD/OS.
Note 2: Invent better heuristic (timestamp checks for build/*.mk).
Note 3: Conversion is currently one-way
Note 4: Don't package on BSD/OS.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86284 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/fastgen.sh')
-rwxr-xr-x | build/fastgen.sh | 39 |
1 files changed, 32 insertions, 7 deletions
diff --git a/build/fastgen.sh b/build/fastgen.sh index 8fa020a82b..eb9d83e6f7 100755 --- a/build/fastgen.sh +++ b/build/fastgen.sh @@ -61,6 +61,9 @@ shift mkdir_p=$1 shift +bsd_makefile=$1 +shift + top_srcdir=`(cd $srcdir; pwd)` top_builddir=`pwd` @@ -70,18 +73,40 @@ else mkdir_p="$top_srcdir/helpers/mkdir.sh" fi -for makefile in $@; do - echo "creating $makefile" - dir=`echo $makefile|sed 's%/*[^/][^/]*$%%'` - test -d "$dir/" || $mkdir_p "$dir/" +if test "$bsd_makefile" = "yes"; then + (cd $top_srcdir; ./build/bsd_makefile) + + for makefile in $@; do + echo "creating $makefile" + dir=`echo $makefile|sed 's%/*[^/][^/]*$%%'` + $mkdir_p "$dir/" - cat - $top_srcdir/$makefile.in <<EOF >$makefile + cat - $top_srcdir/$makefile.in <<EOF |sed 's/^include \(.*\)/.include "\1"/' >$makefile top_srcdir = $top_srcdir top_builddir = $top_builddir srcdir = $top_srcdir/$dir builddir = $top_builddir/$dir VPATH = $top_srcdir/$dir EOF + + test -z "$dir" && dir="." + touch $dir/.deps + done +else + for makefile in $@; do + echo "creating $makefile" + dir=`echo $makefile|sed 's%/*[^/][^/]*$%%'` + $mkdir_p "$dir/" - touch "$top_builddir/$dir/.deps" -done + 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 + + test -z "$dir" && dir="." + touch $dir/.deps + done +fi |