2017-05-28 09:24:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-05-28 10:30:53 +00:00
|
|
|
dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
2017-07-10 14:31:58 +00:00
|
|
|
pushd "$dir";
|
2017-05-28 09:24:05 +00:00
|
|
|
|
2017-05-28 10:30:53 +00:00
|
|
|
if [[ $dir != /mnt/* ]];
|
|
|
|
then
|
|
|
|
echo
|
|
|
|
echo "You need to clone the qmk_firmware repository outside the linux filesystem."
|
|
|
|
echo "Otherwise the windows executables can't be run."
|
|
|
|
exit 1
|
|
|
|
fi
|
2017-05-28 09:24:05 +00:00
|
|
|
|
|
|
|
|
2017-05-28 15:26:38 +00:00
|
|
|
while true; do
|
|
|
|
echo
|
|
|
|
echo "Do you want to install all toolchain dependencies needed for compiling QMK?"
|
|
|
|
echo "This will run install_dependencies.sh, which calls apt-get upgrade."
|
|
|
|
echo "If you don't want that, you can install the dependencies manually."
|
|
|
|
read -p "(Y/N) " res
|
|
|
|
case $res in
|
|
|
|
[Yy]* ) sudo ./install_dependencies.sh; break;;
|
|
|
|
[Nn]* ) break;;
|
|
|
|
* ) echo "Invalid answer";;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2017-05-28 17:43:16 +00:00
|
|
|
echo "Installing dependencies needed for the installation (unzip, wget)"
|
2017-05-28 15:26:38 +00:00
|
|
|
echo "This will ask for the sudo password"
|
2017-05-28 17:43:16 +00:00
|
|
|
sudo apt-get install unzip wget
|
2017-07-10 14:31:58 +00:00
|
|
|
source "$dir/win_shared_install.sh"
|
2017-05-28 17:36:27 +00:00
|
|
|
|
2017-05-28 10:30:53 +00:00
|
|
|
popd > /dev/null
|