diff options
-rwxr-xr-x | Build/source/Build | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Build/source/Build b/Build/source/Build index f16e5923068..530f2edccef 100755 --- a/Build/source/Build +++ b/Build/source/Build @@ -8,9 +8,11 @@ mydir=`dirname $0` cd $mydir || exit 1 +: ${TL_WORKDIR=Work} + if test "x$1" != "x--no-clean"; then test -f Makefile && make clean - rm -rf Work inst + rm -rf $TL_WORKDIR inst else shift fi @@ -23,8 +25,8 @@ if test -z "$TL_INSTALL_DEST"; then fi unset CDPATH -test -d Work || mkdir Work -cd Work || exit 1 +test -d $TL_WORKDIR || mkdir $TL_WORKDIR +cd $TL_WORKDIR || exit 1 # allow override of configure location, just in case. : ${TL_CONFIGURE=../configure} |