aboutsummaryrefslogtreecommitdiff
path: root/util/msys2_install.sh
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-07-11 17:32:58 +0300
committerFred Sundvik <fsundvik@gmail.com>2017-07-11 17:32:58 +0300
commit0d9e7f635e8f05356101d72725342fc272b7b71b (patch)
treebac60593483ef208ad621c35d5a3ca837c0fe3db /util/msys2_install.sh
parent76bd0d3e184f77ff89f9db2274574093f78e49ca (diff)
downloadqmk_firmware-0d9e7f635e8f05356101d72725342fc272b7b71b.tar.gz
qmk_firmware-0d9e7f635e8f05356101d72725342fc272b7b71b.zip
Extract flip
Diffstat (limited to 'util/msys2_install.sh')
-rw-r--r--util/msys2_install.sh12
1 files changed, 12 insertions, 0 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)
4download_dir=~/qmk_utils 4download_dir=~/qmk_utils
5avrtools=avr8-gnu-toolchain 5avrtools=avr8-gnu-toolchain
6armtools=gcc-arm-none-eabi 6armtools=gcc-arm-none-eabi
7installflip=false
7 8
8echo "Installing dependencies needed for the installation (quazip)" 9echo "Installing dependencies needed for the installation (quazip)"
9pacman --needed -S msys/unzip msys/p7zip 10pacman --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
27function extract_flip {
28 rm -f -r flip
29 7z -oflip x FlipInstaller.exe
30}
31
26pushd "$download_dir" 32pushd "$download_dir"
27 33
34if [ -f "FlipInstaller.exe" ]; then
35 echo
36 echo "Extracting flip"
37 extract_flip
38fi
39
28if [ ! -d "$avrtools" ]; then 40if [ ! -d "$avrtools" ]; then
29 while true; do 41 while true; do
30 echo 42 echo