mirror of
https://github.com/sheumann/hush.git
synced 2025-01-04 22:34:37 +00:00
More updates from Larry Doolittle. Don't use basedir, Don't assume
random makefiles are going to work with busybox.
This commit is contained in:
parent
1cf8166329
commit
966b3a6f79
@ -8,10 +8,9 @@
|
|||||||
# to "make". Files in the build tree, in particular Config.h,
|
# to "make". Files in the build tree, in particular Config.h,
|
||||||
# will override those in the pristine source tree.
|
# will override those in the pristine source tree.
|
||||||
#
|
#
|
||||||
|
# If you use a ? in your path name, you lose, see sed command below.
|
||||||
|
|
||||||
|
DIR=${0%%/pristine_setup.sh}
|
||||||
# if you use a ? in your path name, you lose.
|
|
||||||
DIR=`basedir ${0%%/pristine_setup}`
|
|
||||||
if [ ! -d $DIR ]; then
|
if [ ! -d $DIR ]; then
|
||||||
echo "unexpected problem: $DIR is not a directory. Aborting pristine setup"
|
echo "unexpected problem: $DIR is not a directory. Aborting pristine setup"
|
||||||
exit
|
exit
|
||||||
@ -21,16 +20,16 @@ echo " "
|
|||||||
|
|
||||||
if [ -e ./Config.h ]; then
|
if [ -e ./Config.h ]; then
|
||||||
echo "./Config.h already exists: not overwriting"
|
echo "./Config.h already exists: not overwriting"
|
||||||
else
|
exit
|
||||||
cp $DIR/Config.h Config.h
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e ./Makefile ]; then
|
if [ -e ./Makefile ]; then
|
||||||
echo "./Makefile already exists: not overwriting"
|
echo "./Makefile already exists: not overwriting"
|
||||||
else
|
|
||||||
sed -e "s?BB_SRC_DIR =?BB_SRC_DIR = $DIR?" <$DIR/Makefile >Makefile || exit
|
|
||||||
fi
|
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 " "
|
||||||
echo "You may now type 'make' to build busybox in this directory"
|
echo "You may now type 'make' to build busybox in this directory"
|
||||||
|
Loading…
Reference in New Issue
Block a user