Pass $HOST to individual script with a --host parameter

This avoids ambiguity on distributions (such as openSUSE) where the
HOST environment variable already is set, to the hostname.
This commit is contained in:
Martin Storsjö committed 2019-11-13 12:55:39 +02:00
1 parent b5ae2b5cc7
commit 577400a5f7
5 files changed
+39 -14

No files matched your search

+14 -5
View File
@@ -4,19 +4,28 @@ set -e
ASSERTS=OFF
BUILDDIR=build
unset HOST
while [ $# -gt 0 ]; do
if [ "$1" = "--disable-asserts" ]; then
case "$1" in
--disable-asserts)
ASSERTS=OFF
BUILDDIR=build
elif [ "$1" = "--enable-asserts" ]; then
;;
--enable-asserts)
ASSERTS=ON
BUILDDIR=build-asserts
elif [ "$1" = "--full-llvm" ]; then
;;
--full-llvm)
FULL_LLVM=1
else
;;
--host=*)
HOST="${1#*=}"
;;
*)
PREFIX="$1"
fi
;;
esac
shift
done
if [ -z "$CHECKOUT_ONLY" ]; then