From 6f61f380eec571aa369b2063de5710c1da97147f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Tue, 24 Oct 2017 01:23:22 +0200 Subject: [PATCH] Compress environment checking --- toolchain/dbg | 9 +-------- toolchain/emul | 9 +-------- toolchain/mkiso | 9 +-------- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/toolchain/dbg b/toolchain/dbg index 91505fb..25a2c58 100755 --- a/toolchain/dbg +++ b/toolchain/dbg @@ -1,12 +1,5 @@ #!/bin/sh -e -if [ -z ${MITTOS64+x} ]; then - echo -en "\033[31mWarning: \033[0m" - echo "It seems you are trying to build mittos64 in an unsuported environment." - echo "This makefile is designed to run inside a mittos64-specific docker container." - echo "If you know what you're doing, define the environment variable "MITTOS64"" - echo "See README.md for more information" - exit 1 -fi +if [ -z ${MITTOS64+x} ]; then >&2 echo "Unsupported environment! See README"; exit 1; fi gdb -q -x /opt/toolchain/gdbinit diff --git a/toolchain/emul b/toolchain/emul index e27322e..e85193a 100755 --- a/toolchain/emul +++ b/toolchain/emul @@ -1,13 +1,6 @@ #!/bin/sh -e -if [ -z ${MITTOS64+x} ]; then - echo -en "\033[31mWarning: \033[0m" - echo "It seems you are trying to build mittos64 in an unsuported environment." - echo "This makefile is designed to run inside a mittos64-specific docker container." - echo "If you know what you're doing, define the environment variable "MITTOS64"" - echo "See README.md for more information" - exit 1 -fi +if [ -z ${MITTOS64+x} ]; then >&2 echo "Unsupported environment! See README"; exit 1; fi iso=/opt/mittos64.iso diff --git a/toolchain/mkiso b/toolchain/mkiso index c57a045..c10b478 100755 --- a/toolchain/mkiso +++ b/toolchain/mkiso @@ -1,13 +1,6 @@ #!/bin/sh -e -if [ -z ${MITTOS64+x} ]; then - echo -en "\033[31mWarning: \033[0m" - echo "It seems you are trying to build mittos64 in an unsuported environment." - echo "This makefile is designed to run inside a mittos64-specific docker container." - echo "If you know what you're doing, define the environment variable "MITTOS64"" - echo "See README.md for more information" - exit 1 -fi +if [ -z ${MITTOS64+x} ]; then >&2 echo "Unsupported environment! See README"; exit 1; fi sysroot=/opt/sysroot iso=/opt/mittos64.iso