Looking for config.sh in parent directories isn't
Jarkko Hietaniemi [Sun, 18 Mar 2001 20:36:59 +0000 (20:36 +0000)]
very useful for the toplevel Makefile.

p4raw-id: //depot/perl@9212

Makefile.SH

index b425bc6..935c8f1 100644 (file)
@@ -1,11 +1,8 @@
 #! /bin/sh
 case $CONFIGDOTSH in
 '')
-       if test -f config.sh; then TOP=.;
-       elif test -f ../config.sh; then TOP=..;
-       elif test -f ../../config.sh; then TOP=../..;
-       elif test -f ../../../config.sh; then TOP=../../..;
-       elif test -f ../../../../config.sh; then TOP=../../../..;
+       if test -f config.sh
+               then TOP=.
        else
                echo "Can't find config.sh."; exit 1
        fi