keyboard/qmk/util/qmk_install.sh

28 lines
604 B
Bash
Raw Normal View History

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