Be sure that JHALFSDIR is not set to the jhalfs sources directory.

Thanks to Dan Nicholson for the patch.
This commit is contained in:
Manuel Canales Esparcia 2007-09-14 16:56:24 +00:00
parent e5842d6984
commit 38ae01f61f
2 changed files with 11 additions and 0 deletions

View file

@ -723,6 +723,9 @@ menu "--- General Settings"
default "/mnt/build_dir" default "/mnt/build_dir"
help help
#-- The directory where the created system will be located. #-- The directory where the created system will be located.
# NOTE: A working directory named jhalfs will be created
# here, so ensure this does not conflict with the jhalfs
# source directory.
config GETPKG config GETPKG
bool "Retrieve source files" bool "Retrieve source files"

8
jhalfs
View file

@ -119,6 +119,14 @@ SET_WARNINGS=${SET_WARNINGS:=n}
SET_MISC=${SET_MISC:=n} SET_MISC=${SET_MISC:=n}
SET_BLOWFISH=${SET_BLOWFISH:=n} SET_BLOWFISH=${SET_BLOWFISH:=n}
# Sanity check on the location of $BUILDDIR / $JHALFSDIR
CWD=$(cd `dirname $0` && pwd)
if [[ $JHALFSDIR == $CWD ]]; then
echo " The jhalfs source directory conflicts with the jhalfs build directory."
echo " Please move the source directory or change the build directory."
exit 2
fi
# Book surces envars # Book surces envars
BRANCH_ID=${BRANCH_ID:=development} BRANCH_ID=${BRANCH_ID:=development}