diff options
author | Matt A. Tobin <email@mattatobin.com> | 2022-03-25 00:01:05 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2022-03-25 00:01:05 -0500 |
commit | 46de659d63f8485dc01175ae0e36235bd2b11e58 (patch) | |
tree | cf71ea28cafdecb502918bb1685eb255d9b51d56 /system/mach.sh | |
parent | 8a34848ce0f6d4006947c51227b05bec6d12bfdb (diff) | |
download | aura-central-46de659d63f8485dc01175ae0e36235bd2b11e58.tar.gz |
Rebrand the Platform Codebase
Diffstat (limited to 'system/mach.sh')
-rw-r--r-- | system/mach.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/system/mach.sh b/system/mach.sh new file mode 100644 index 000000000..64239a3ed --- /dev/null +++ b/system/mach.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +BINOC_SYSTEM=`uname | tr [:upper:] [:lower:]` +BINOC_PYTHON=`which python2.7 2>/dev/null` +BINOC_GIT=`which git 2>/dev/null` +BINOC_CURL=`which curl 2>/dev/null` +BINOC_MACH=mozmach +BINOC_CONFIG_GUESS=`./build/autoconf/config.guess 2>/dev/null` + +# ============================================================================= + +if [ -z "$BINOC_PYTHON" ]; then + printf "We could not find Python 2.7 which is required for just about everything!\n" + exit 1 +fi + +# ============================================================================= + +# Determin the current OS +# This will also be exported so it can be picked up by .mozconfig +if [[ "$BINOC_SYSTEM" == "mingw32_nt-"* ]]; then + BINOC_SYSTEM=windows + + if [ "$BINOC_CONFIG_GUESS" == "x86_64-pc-mingw32" ]; then + BINOC_CONFIG_GUESS=win64 + else + BINOC_CONFIG_GUESS=win32 + fi +fi + +export BINOC_SYSTEM=$BINOC_SYSTEM +export BINOC_CONFIG_GUESS=$BINOC_CONFIG_GUESS + +# ============================================================================= + +$BINOC_MACH $@ |