aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-02-17 15:56:52 +0000
committerEric Andersen <andersen@codepoet.org>2001-02-17 15:56:52 +0000
commit966b3a6f795acb44e10c499cd93fa6e6c788c371 (patch)
tree674e5d19a6259ecc6902fce2eba58930645e11e0
parent1cf8166329e107e4bf0ecf72bb30d2e007950a1d (diff)
downloadbusybox-966b3a6f795acb44e10c499cd93fa6e6c788c371.tar.gz
More updates from Larry Doolittle. Don't use basedir, Don't assume
random makefiles are going to work with busybox.
-rwxr-xr-xpristine_setup.sh15
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 @@
# to "make". Files in the build tree, in particular Config.h,
# will override those in the pristine source tree.
#
+# If you use a ? in your path name, you lose, see sed command below.
-
-# if you use a ? in your path name, you lose.
-DIR=`basedir ${0%%/pristine_setup}`
+DIR=${0%%/pristine_setup.sh}
if [ ! -d $DIR ]; then
echo "unexpected problem: $DIR is not a directory. Aborting pristine setup"
exit
@@ -20,17 +19,17 @@ fi
echo " "
if [ -e ./Config.h ]; then
- echo "./Config.h already exists: not overwriting"
-else
- cp $DIR/Config.h Config.h
+ echo "./Config.h already exists: not overwriting"
+ exit
fi
if [ -e ./Makefile ]; then
echo "./Makefile already exists: not overwriting"
-else
- sed -e "s?BB_SRC_DIR =?BB_SRC_DIR = $DIR?" <$DIR/Makefile >Makefile || exit
fi
+sed -e "s?BB_SRC_DIR =.*?BB_SRC_DIR = $DIR?" <$DIR/Makefile >Makefile || exit
+cp $DIR/Config.h Config.h || exit
+#mkdir -p pwd_grp
echo " "
echo "You may now type 'make' to build busybox in this directory"