|
|
@ -4,6 +4,7 @@ dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
|
|
|
download_dir=~/qmk_utils
|
|
|
|
download_dir=~/qmk_utils
|
|
|
|
avrtools=avr8-gnu-toolchain
|
|
|
|
avrtools=avr8-gnu-toolchain
|
|
|
|
armtools=gcc-arm-none-eabi
|
|
|
|
armtools=gcc-arm-none-eabi
|
|
|
|
|
|
|
|
installflip=false
|
|
|
|
|
|
|
|
|
|
|
|
echo "Installing dependencies needed for the installation (quazip)"
|
|
|
|
echo "Installing dependencies needed for the installation (quazip)"
|
|
|
|
pacman --needed -S msys/unzip msys/p7zip
|
|
|
|
pacman --needed -S msys/unzip msys/p7zip
|
|
|
@ -23,8 +24,19 @@ function install_arm {
|
|
|
|
rm gcc-arm-none-eabi.zip
|
|
|
|
rm gcc-arm-none-eabi.zip
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function extract_flip {
|
|
|
|
|
|
|
|
rm -f -r flip
|
|
|
|
|
|
|
|
7z -oflip x FlipInstaller.exe
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pushd "$download_dir"
|
|
|
|
pushd "$download_dir"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -f "FlipInstaller.exe" ]; then
|
|
|
|
|
|
|
|
echo
|
|
|
|
|
|
|
|
echo "Extracting flip"
|
|
|
|
|
|
|
|
extract_flip
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -d "$avrtools" ]; then
|
|
|
|
if [ ! -d "$avrtools" ]; then
|
|
|
|
while true; do
|
|
|
|
while true; do
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|