diff options
| author | Fred Sundvik <fsundvik@gmail.com> | 2017-07-11 17:32:58 +0300 |
|---|---|---|
| committer | Fred Sundvik <fsundvik@gmail.com> | 2017-07-11 17:32:58 +0300 |
| commit | 0d9e7f635e8f05356101d72725342fc272b7b71b (patch) | |
| tree | bac60593483ef208ad621c35d5a3ca837c0fe3db /util | |
| parent | 76bd0d3e184f77ff89f9db2274574093f78e49ca (diff) | |
| download | qmk_firmware-0d9e7f635e8f05356101d72725342fc272b7b71b.tar.gz qmk_firmware-0d9e7f635e8f05356101d72725342fc272b7b71b.zip | |
Extract flip
Diffstat (limited to 'util')
| -rw-r--r-- | util/msys2_install.sh | 12 | ||||
| -rw-r--r-- | util/win_shared_install.sh | 15 | ||||
| -rw-r--r-- | util/wsl_install.sh | 15 |
3 files changed, 27 insertions, 15 deletions
diff --git a/util/msys2_install.sh b/util/msys2_install.sh index 0bb75f94c..866cc25a7 100644 --- a/util/msys2_install.sh +++ b/util/msys2_install.sh | |||
| @@ -4,6 +4,7 @@ dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) | |||
| 4 | download_dir=~/qmk_utils | 4 | download_dir=~/qmk_utils |
| 5 | avrtools=avr8-gnu-toolchain | 5 | avrtools=avr8-gnu-toolchain |
| 6 | armtools=gcc-arm-none-eabi | 6 | armtools=gcc-arm-none-eabi |
| 7 | installflip=false | ||
| 7 | 8 | ||
| 8 | echo "Installing dependencies needed for the installation (quazip)" | 9 | echo "Installing dependencies needed for the installation (quazip)" |
| 9 | pacman --needed -S msys/unzip msys/p7zip | 10 | pacman --needed -S msys/unzip msys/p7zip |
| @@ -23,8 +24,19 @@ function install_arm { | |||
| 23 | rm gcc-arm-none-eabi.zip | 24 | rm gcc-arm-none-eabi.zip |
| 24 | } | 25 | } |
| 25 | 26 | ||
| 27 | function extract_flip { | ||
| 28 | rm -f -r flip | ||
| 29 | 7z -oflip x FlipInstaller.exe | ||
| 30 | } | ||
| 31 | |||
| 26 | pushd "$download_dir" | 32 | pushd "$download_dir" |
| 27 | 33 | ||
| 34 | if [ -f "FlipInstaller.exe" ]; then | ||
| 35 | echo | ||
| 36 | echo "Extracting flip" | ||
| 37 | extract_flip | ||
| 38 | fi | ||
| 39 | |||
| 28 | if [ ! -d "$avrtools" ]; then | 40 | if [ ! -d "$avrtools" ]; then |
| 29 | while true; do | 41 | while true; do |
| 30 | echo | 42 | echo |
diff --git a/util/win_shared_install.sh b/util/win_shared_install.sh index cfae57845..8d1949ae9 100644 --- a/util/win_shared_install.sh +++ b/util/win_shared_install.sh | |||
| @@ -55,21 +55,6 @@ else | |||
| 55 | done | 55 | done |
| 56 | fi | 56 | fi |
| 57 | 57 | ||
| 58 | pushd "$download_dir" | ||
| 59 | while true; do | ||
| 60 | echo | ||
| 61 | echo "Flip need to be installed if you want to use that for programming." | ||
| 62 | echo "Please install it to the default location!" | ||
| 63 | read -p "Do you want to install it now? (Y/N) " res | ||
| 64 | case $res in | ||
| 65 | [Yy]* ) cmd.exe /c FlipInstaller.exe; break;; | ||
| 66 | [Nn]* ) break;; | ||
| 67 | * ) echo "Invalid answer";; | ||
| 68 | esac | ||
| 69 | done | ||
| 70 | popd | ||
| 71 | |||
| 72 | |||
| 73 | while true; do | 58 | while true; do |
| 74 | echo | 59 | echo |
| 75 | echo "Which USB drivers do you want to install?" | 60 | echo "Which USB drivers do you want to install?" |
diff --git a/util/wsl_install.sh b/util/wsl_install.sh index 89552b991..157480353 100644 --- a/util/wsl_install.sh +++ b/util/wsl_install.sh | |||
| @@ -33,6 +33,21 @@ download_dir=wsl_downloaded | |||
| 33 | 33 | ||
| 34 | source "$dir/win_shared_install.sh" | 34 | source "$dir/win_shared_install.sh" |
| 35 | 35 | ||
| 36 | pushd "$download_dir" | ||
| 37 | while true; do | ||
| 38 | echo | ||
| 39 | echo "Flip need to be installed if you want to use that for programming." | ||
| 40 | echo "Please install it to the default location!" | ||
| 41 | read -p "Do you want to install it now? (Y/N) " res | ||
| 42 | case $res in | ||
| 43 | [Yy]* ) cmd.exe /c FlipInstaller.exe; break;; | ||
| 44 | [Nn]* ) break;; | ||
| 45 | * ) echo "Invalid answer";; | ||
| 46 | esac | ||
| 47 | done | ||
| 48 | popd | ||
| 49 | |||
| 50 | |||
| 36 | echo | 51 | echo |
| 37 | echo "Creating a softlink to the utils directory as ~/qmk_utils." | 52 | echo "Creating a softlink to the utils directory as ~/qmk_utils." |
| 38 | echo "This is needed so that the the make system can find all utils it need." | 53 | echo "This is needed so that the the make system can find all utils it need." |
