A patch from Larry to fix pristine source builds (again).
authorEric Andersen <andersen@codepoet.org>
Tue, 1 May 2001 01:40:34 +0000 (01:40 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 1 May 2001 01:40:34 +0000 (01:40 -0000)
I just can't seem to _not_ break it.  Sigh.

Makefile
applets/busybox.sh
busybox.sh

index 91ed745c619af21aac71262b222dce3b4a8e014a..540e96ce75935208d3aa2ebff007b80b335b131c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -274,7 +274,7 @@ sh.c:
        @if [ ! -L sh.c ] ; then ln -s lash.c sh.c ; fi
 
 applet_source_list: sh.c busybox.sh Config.h
-       (echo -n "APPLET_SOURCES := "; $(SHELL) $(filter-out sh.c, $^) $(BB_SRC_DIR)) > $@
+       (echo -n "APPLET_SOURCES := "; BB_SRC_DIR=$(BB_SRC_DIR) $(SHELL) $^) > $@
 
 doc: olddoc
 
index 2f9a905f53997f04fa3bedbf3500a727ad4028ec..6b25dff3b4ab81fff4702f389b956fb5c0ccd7dd 100755 (executable)
@@ -9,7 +9,7 @@ RAW=` \
     | tr A-Z a-z | sort
 `
 test "${RAW}" != "" ||  exit
-cd ${2:-.}
+if [ -d $BB_SRC_DIR ]; then cd $BB_SRC_DIR; fi
 # By running $RAW through "ls", we avoid listing
 # source files that don't exist.
 ls $RAW 2>/dev/null | tr '\n' ' '
index 2f9a905f53997f04fa3bedbf3500a727ad4028ec..6b25dff3b4ab81fff4702f389b956fb5c0ccd7dd 100755 (executable)
@@ -9,7 +9,7 @@ RAW=` \
     | tr A-Z a-z | sort
 `
 test "${RAW}" != "" ||  exit
-cd ${2:-.}
+if [ -d $BB_SRC_DIR ]; then cd $BB_SRC_DIR; fi
 # By running $RAW through "ls", we avoid listing
 # source files that don't exist.
 ls $RAW 2>/dev/null | tr '\n' ' '