You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by pg...@sweng.stortek.com on 1999/11/23 16:41:27 UTC

[PATCH] Building Shadow Makefile

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