diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-02-17 15:56:52 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-02-17 15:56:52 +0000 |
commit | 966b3a6f795acb44e10c499cd93fa6e6c788c371 (patch) | |
tree | 674e5d19a6259ecc6902fce2eba58930645e11e0 | |
parent | 1cf8166329e107e4bf0ecf72bb30d2e007950a1d (diff) | |
download | busybox-w32-966b3a6f795acb44e10c499cd93fa6e6c788c371.tar.gz busybox-w32-966b3a6f795acb44e10c499cd93fa6e6c788c371.tar.bz2 busybox-w32-966b3a6f795acb44e10c499cd93fa6e6c788c371.zip |
More updates from Larry Doolittle. Don't use basedir, Don't assume
random makefiles are going to work with busybox.
-rwxr-xr-x | pristine_setup.sh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/pristine_setup.sh b/pristine_setup.sh index dca278c73..e1598fd30 100755 --- a/pristine_setup.sh +++ b/pristine_setup.sh | |||
@@ -8,10 +8,9 @@ | |||
8 | # to "make". Files in the build tree, in particular Config.h, | 8 | # to "make". Files in the build tree, in particular Config.h, |
9 | # will override those in the pristine source tree. | 9 | # will override those in the pristine source tree. |
10 | # | 10 | # |
11 | # If you use a ? in your path name, you lose, see sed command below. | ||
11 | 12 | ||
12 | 13 | DIR=${0%%/pristine_setup.sh} | |
13 | # if you use a ? in your path name, you lose. | ||
14 | DIR=`basedir ${0%%/pristine_setup}` | ||
15 | if [ ! -d $DIR ]; then | 14 | if [ ! -d $DIR ]; then |
16 | echo "unexpected problem: $DIR is not a directory. Aborting pristine setup" | 15 | echo "unexpected problem: $DIR is not a directory. Aborting pristine setup" |
17 | exit | 16 | exit |
@@ -20,17 +19,17 @@ fi | |||
20 | echo " " | 19 | echo " " |
21 | 20 | ||
22 | if [ -e ./Config.h ]; then | 21 | if [ -e ./Config.h ]; then |
23 | echo "./Config.h already exists: not overwriting" | 22 | echo "./Config.h already exists: not overwriting" |
24 | else | 23 | exit |
25 | cp $DIR/Config.h Config.h | ||
26 | fi | 24 | fi |
27 | 25 | ||
28 | if [ -e ./Makefile ]; then | 26 | if [ -e ./Makefile ]; then |
29 | echo "./Makefile already exists: not overwriting" | 27 | echo "./Makefile already exists: not overwriting" |
30 | else | ||
31 | sed -e "s?BB_SRC_DIR =?BB_SRC_DIR = $DIR?" <$DIR/Makefile >Makefile || exit | ||
32 | fi | 28 | fi |
33 | 29 | ||
30 | sed -e "s?BB_SRC_DIR =.*?BB_SRC_DIR = $DIR?" <$DIR/Makefile >Makefile || exit | ||
31 | cp $DIR/Config.h Config.h || exit | ||
32 | #mkdir -p pwd_grp | ||
34 | 33 | ||
35 | echo " " | 34 | echo " " |
36 | echo "You may now type 'make' to build busybox in this directory" | 35 | echo "You may now type 'make' to build busybox in this directory" |