2018-03-07 04:37:48 +06:00
|
|
|
#!/bin/sh
|
|
|
|
# Pick the correct install script based on the current OS
|
|
|
|
|
|
|
|
util_dir=$(dirname "$0")
|
|
|
|
|
2018-08-12 01:59:26 +06:00
|
|
|
case $(uname -a) in
|
|
|
|
*Darwin*)
|
2018-03-07 04:37:48 +06:00
|
|
|
exec "${util_dir}/macos_install.sh"
|
|
|
|
;;
|
2018-10-09 22:40:10 +06:00
|
|
|
*FreeBSD*)
|
|
|
|
exec "${util_dir}/freebsd_install.sh"
|
|
|
|
;;
|
2018-08-12 01:59:26 +06:00
|
|
|
*Linux*)
|
2018-03-07 04:37:48 +06:00
|
|
|
exec "${util_dir}/linux_install.sh"
|
|
|
|
;;
|
2020-10-17 21:45:21 +06:00
|
|
|
MINGW64_NT*)
|
2018-03-07 04:37:48 +06:00
|
|
|
exec "${util_dir}/msys2_install.sh"
|
|
|
|
;;
|
2020-10-17 21:45:21 +06:00
|
|
|
MSYS_NT*|MINGW32_NT*)
|
|
|
|
echo "Please open a MinGW 64-bit terminal window and re-run this script."
|
|
|
|
exit 1
|
|
|
|
;;
|
2018-10-09 22:40:10 +06:00
|
|
|
*)
|
|
|
|
echo "Environment not supported. Please see https://docs.qmk.fm for details on how to configure the QMK Firmware build tools manually."
|
2020-10-17 21:45:21 +06:00
|
|
|
exit 1
|
2018-10-09 22:40:10 +06:00
|
|
|
;;
|
2018-03-07 04:37:48 +06:00
|
|
|
esac
|