1
0
Fork 0
qmk_firmware/util/wsl_install.sh

34 lines
919 B
Bash
Raw Normal View History

#!/bin/bash
dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
pushd "$dir";
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 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
source "$dir/win_shared_install.sh"
popd > /dev/null