2018-03-07 06:37:48 +08:00
|
|
|
#!/bin/sh
|
|
|
|
# Pick the correct install script based on the current OS
|
|
|
|
|
|
|
|
util_dir=$(dirname "$0")
|
|
|
|
|
2018-08-12 03:59:26 +08:00
|
|
|
case $(uname -a) in
|
|
|
|
*Darwin*)
|
2018-03-07 06:37:48 +08:00
|
|
|
exec "${util_dir}/macos_install.sh"
|
|
|
|
;;
|
2018-10-10 00:40:10 +08:00
|
|
|
*Linux*Microsoft*)
|
2018-08-12 03:59:26 +08:00
|
|
|
exec "${util_dir}/wsl_install.sh"
|
2018-10-10 00:40:10 +08:00
|
|
|
;;
|
|
|
|
*FreeBSD*)
|
|
|
|
exec "${util_dir}/freebsd_install.sh"
|
|
|
|
;;
|
2018-08-12 03:59:26 +08:00
|
|
|
*Linux*)
|
2018-03-07 06:37:48 +08:00
|
|
|
exec "${util_dir}/linux_install.sh"
|
|
|
|
;;
|
2018-08-12 03:47:25 +08:00
|
|
|
MSYS_NT*|MINGW64_NT*|MINGW32_NT*)
|
2018-03-07 06:37:48 +08:00
|
|
|
exec "${util_dir}/msys2_install.sh"
|
|
|
|
;;
|
2018-10-10 00:40:10 +08:00
|
|
|
*)
|
|
|
|
echo "Environment not supported. Please see https://docs.qmk.fm for details on how to configure the QMK Firmware build tools manually."
|
|
|
|
;;
|
2018-03-07 06:37:48 +08:00
|
|
|
esac
|