summaryrefslogtreecommitdiff
path: root/sysinfo
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-23 04:27:44 -0500
committermidipix <writeonce@midipix.org>2018-12-23 04:42:17 -0500
commiteb0b78fefb6c76189823e303a79de45419618a69 (patch)
treeec8827980760d571e910fe09b01a9c2c6478f38a /sysinfo
parentd32af227191049b2c8479933ef1dbcf170b7f100 (diff)
downloadsbpython3-eb0b78fefb6c76189823e303a79de45419618a69.tar.bz2
sbpython3-eb0b78fefb6c76189823e303a79de45419618a69.tar.xz
build system: target & native cchost logic: initial clean-up.
Diffstat (limited to 'sysinfo')
-rwxr-xr-xsysinfo/host/host.sh48
1 files changed, 0 insertions, 48 deletions
diff --git a/sysinfo/host/host.sh b/sysinfo/host/host.sh
deleted file mode 100755
index 686edca..0000000
--- a/sysinfo/host/host.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-
-error_msg()
-{
- echo $@ >&2
-}
-
-host_test()
-{
- mb_hdrdir=$(pwd)/build
- mkdir -p $mb_hdrdir || exit 2
-
- if [ -z "$mb_compiler" ]; then
- echo "config error: compiler not set."
- exit 2
- fi
-
- $mb_compiler $mb_cflags -dumpmachine && return 0
-
- error_msg "config error: invalid compiler."
- exit 2
-}
-
-# one: args
-for arg ; do
- case "$arg" in
- --help) usage
- ;;
- --compiler=*)
- mb_compiler=${arg#*=}
- ;;
- --cflags=*)
- mb_cflags=${arg#*=}
- ;;
- *)
- error_msg ${arg#}: "unsupported config argument."
- exit 2
- ;;
- esac
-done
-
-
-# two: test
-host_test
-
-
-# all done
-exit 0