build/scripts: make toolchain scripts more self-sustainable

Change-Id: Ibe4cf105a20184392498371ba770529d69bd61a7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2417
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Alexander von Gluck IV
2020-03-24 18:24:13 +00:00
committed by waddlesplash
parent 9d6177614b
commit cb837539f5
2 changed files with 18 additions and 2 deletions
+7 -1
View File
@@ -7,12 +7,18 @@
# get and check the parameters
if [ $# -lt 3 ]; then
echo Usage: $0 '<haiku sourcedir> <buildtools dir> <install dir>' >&2
echo Usage: $0 '<haiku sourcedir> <buildtools dir> <install dir>' \
'[extra make flags]' >&2
exit 1
fi
set -e
if [ -z "$MAKE" ]; then
echo "MAKE undefined. Assuming make."
export MAKE=make
fi
haikuSourceDir=$1
buildToolsDir=$2/legacy
installDir=$3