Commit | Line | Data |
---|---|---|
28a4e905 FS |
1 | #!/bin/bash |
2 | ||
aa264644 | 3 | dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) |
a2d3fc98 | 4 | pushd "$dir"; |
28a4e905 | 5 | |
aa264644 FS |
6 | if [[ $dir != /mnt/* ]]; |
7 | then | |
8 | echo | |
9 | echo "You need to clone the qmk_firmware repository outside the linux filesystem." | |
10 | echo "Otherwise the windows executables can't be run." | |
11 | exit 1 | |
12 | fi | |
28a4e905 | 13 | |
28a4e905 | 14 | |
9c582fc7 FS |
15 | while true; do |
16 | echo | |
17 | echo "Do you want to install all toolchain dependencies needed for compiling QMK?" | |
18 | echo "This will run install_dependencies.sh, which calls apt-get upgrade." | |
19 | echo "If you don't want that, you can install the dependencies manually." | |
20 | read -p "(Y/N) " res | |
21 | case $res in | |
22 | [Yy]* ) sudo ./install_dependencies.sh; break;; | |
23 | [Nn]* ) break;; | |
24 | * ) echo "Invalid answer";; | |
25 | esac | |
26 | done | |
27 | ||
3e4f2f55 | 28 | echo "Installing dependencies needed for the installation (unzip, wget)" |
9c582fc7 | 29 | echo "This will ask for the sudo password" |
3e4f2f55 | 30 | sudo apt-get install unzip wget |
a2d3fc98 | 31 | source "$dir/win_shared_install.sh" |
3d3999d8 | 32 | |
aa264644 | 33 | popd > /dev/null |