httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p.@sweng.stortek.com
Subject [PATCH] Building Shadow Makefile
Date Tue, 23 Nov 1999 15:41:27 GMT
Lately I corrupted my shadow makefile (inadvertently did a
"configure" without the "--shadow" option).  No problem, I 
thought; I'll just delete Makefile and redo the configure.

Alas, "configure" doesn't rebuild Makefile if any shadow source
trees exist.  Rather than delete all my shadow source trees,
run configure, and restore them, I modified "configure" so it
will at least build Makefile if it doesn't exist.

-- gil
-- 
StorageTek
INFORMATION made POWERFUL
=============================================================
diff -bru orig/apache_1.3.9/configure apache_1.3.9/configure
--- orig/apache_1.3.9/configure	Sat Aug 14 02:29:05 1999
+++ apache_1.3.9/configure	Tue Nov 23 07:47:09 1999
@@ -549,7 +549,7 @@
             #   Makefile is for platform bootstrapping, so don't hardcode paths)
             gnutriple=`$aux/GuessOS | sed -e 's:/:-:g' | awk '{ printf("%s",$1); }'`
             #   create Makefile wrapper (the first time only)
-            if [ "x`ls $top/src.* 2>/dev/null`" = "x" ]; then
+            if ls $top/src.* Makefile 2>/dev/null 1>&2; then :; else
                 if [ "x$quiet" = "xno" ]; then
                     echo " + creating Makefile (shadow wrapper)"
                 fi

Mime
View raw message