summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-16 19:52:45 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-16 19:52:45 +0100
commitaaa312e56871e89b97704e5ac8c686fe7966c122 (patch)
tree63f6a6c3e89152025de942a0e68153a5cb868ecb /scripts
parent9d097a780c0ffe2c9dbe146046d5b68123c47708 (diff)
parentb1e843d40eea9bc684436f4635018b7c19eb93ea (diff)
Merge branch 'master' of git+ssh://www.openadk.org/git/openadk
Conflicts: TODO
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh19
1 files changed, 4 insertions, 15 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index ab4ac8635..7c93a12a3 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#-
-# Copyright © 2010, 2011
+# Copyright © 2010-2014
# Waldemar Brodkorb <wbx@openadk.org>
# Thorsten Glaser <tg@mirbsd.org>
#
@@ -32,25 +32,14 @@
# • create a cfgfs partition
TOPDIR=$(pwd)
+HOST=$(gcc -dumpmachine)
me=$0
case :$PATH: in
-(*:$TOPDIR/bin/tools:*) ;;
-(*) export PATH=$PATH:$TOPDIR/bin/tools ;;
+(*:$TOPDIR/host_$HOST/usr/bin:*) ;;
+(*) export PATH=$PATH:$TOPDIR/host_$HOST/usr/bin ;;
esac
-test -n "$KSH_VERSION" || if ! which mksh >/dev/null 2>&1; then
- make package=mksh fetch || exit 1
- df=$(cd package/mksh; TOPDIR="$TOPDIR" gmake show=DISTFILES)
- mkdir -p build_mksh
- gzip -dc dl/"$df" | (cd build_mksh; cpio -mid)
- cd build_mksh/mksh
- bash Build.sh -r -c lto || exit 1
- cp mksh "$TOPDIR"/bin/tools/
- cd "$TOPDIR"
- rm -rf build_mksh
-fi
-
test -n "$KSH_VERSION" || exec mksh "$me" "$@"
if test -z "$KSH_VERSION"; then
echo >&2 Fatal error: could not run myself with mksh!