From c68106f8d50a3daa8327ea67dfdfa3005dcec817 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 23 Dec 2018 04:27:44 -0500 Subject: build system: target & native cchost logic: initial clean-up. --- sysinfo/host/host.sh | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100755 sysinfo/host/host.sh (limited to 'sysinfo/host') 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 -- cgit v1.2.3