From afc92e916b8a80d7c5dd33ca40d8ceda1d7fff40 Mon Sep 17 00:00:00 2001 From: Pierre Date: Fri, 27 Jul 2018 10:52:20 +0200 Subject: [PATCH] fix script [skip ci] --- deken/FaustDeken.sh | 98 ++++++++++++++++++++++----------------------- 1 file changed, 48 insertions(+), 50 deletions(-) diff --git a/deken/FaustDeken.sh b/deken/FaustDeken.sh index 0931fdd..971f2d6 100755 --- a/deken/FaustDeken.sh +++ b/deken/FaustDeken.sh @@ -1,51 +1,49 @@ #!/bin/bash - -echo -e "Deken manager for faustgen~" - -deken_prepare() { - -rm -rf faustgen~ -rm -f *.dek -rm -f *.dek.sha256 -rm -f *.dek.txt - -rm -f faustgen_tilde_darwin.zip -curl -L "https://github.com/pierreguillot/faust-pd/releases/download/v$1/faustgen_tilde-Darwin-amd64-32-sources.zip" -o faustgen_tilde_darwin.zip -tar zxvf faustgen_tilde_darwin.zip -deken package -v$1 faustgen~ -rm -rf faustgen~ -rm -f faustgen_tilde_darwin.zip - -rm -f faustgen_tilde_linux.zip -curl -L "https://github.com/pierreguillot/faust-pd/releases/download/v$1/faustgen_tilde-Linux-amd64-32-sources.zip" -o faustgen_tilde_linux.zip -tar zxvf faustgen_tilde_linux.zip -deken package -v$1 faustgen~ -rm -rf faustgen~ -rm -f faustgen_tilde_linux.zip - -rm -f faustgen_tilde_windows.zip -curl -L "https://github.com/pierreguillot/faust-pd/releases/download/v$1/faustgen_tilde-Windows-amd64-32-sources.zip" -o faustgen_tilde_windows.zip -tar zxvf faustgen_tilde_windows.zip -deken package -v$1 faustgen~ -rm -rf faustgen~ -rm -f faustgen_tilde_windows.zip - -rm -f faustgen_tilde_archive.zip -curl -L "https://github.com/pierreguillot/faust-pd/archive/v$1.zip" -o faustgen_tilde_archive.zip -tar zxvf faustgen_tilde_archive.zip -mv pd-faustgen-$1 faustgen~ -deken package -v$1 faustgen~ -rm -rf faustgen~ -rm -f faustgen_tilde_archive.zip - -} - -deken_upload() { -deken upload faustgen~[v$2](Darwin-amd64-32)(Sources).dek faustgen~[v$2](Linux-amd64-32)(Sources).dek faustgen~[v$2](Windows-amd64-32)(Sources).dek faustgen~[v$2](Sources).dek -} - -if [ "$1" == "upload" ]; then - deken_upload -else - deken_prepare -fi + +echo -e "Deken manager for faustgen~" + +deken_prepare() { + rm -rf faustgen~ + rm -f *.dek + rm -f *.dek.sha256 + rm -f *.dek.txt + + rm -f faustgen_tilde_darwin.zip + curl -L "https://github.com/pierreguillot/faust-pd/releases/download/v$1/faustgen_tilde-Darwin-amd64-32-sources.zip" -o faustgen_tilde_darwin.zip + tar zxvf faustgen_tilde_darwin.zip + deken package -v$1 faustgen~ + rm -rf faustgen~ + rm -f faustgen_tilde_darwin.zip + + rm -f faustgen_tilde_linux.zip + curl -L "https://github.com/pierreguillot/faust-pd/releases/download/v$1/faustgen_tilde-Linux-amd64-32-sources.zip" -o faustgen_tilde_linux.zip + tar zxvf faustgen_tilde_linux.zip + deken package -v$1 faustgen~ + rm -rf faustgen~ + rm -f faustgen_tilde_linux.zip + + rm -f faustgen_tilde_windows.zip + curl -L "https://github.com/pierreguillot/faust-pd/releases/download/v$1/faustgen_tilde-Windows-amd64-32-sources.zip" -o faustgen_tilde_windows.zip + tar zxvf faustgen_tilde_windows.zip + deken package -v$1 faustgen~ + rm -rf faustgen~ + rm -f faustgen_tilde_windows.zip + + rm -f faustgen_tilde_archive.zip + curl -L "https://github.com/pierreguillot/faust-pd/archive/v$1.zip" -o faustgen_tilde_archive.zip + tar zxvf faustgen_tilde_archive.zip + mv pd-faustgen-$1 faustgen~ + deken package -v$1 faustgen~ + rm -rf faustgen~ + rm -f faustgen_tilde_archive.zip +} + +deken_upload() { + deken upload "faustgen~[v$1](Darwin-amd64-32)(Sources).dek" "faustgen~[v$1](Linux-amd64-32)(Sources).dek" "faustgen~[v$1](Windows-amd64-32)(Sources).dek" "faustgen~[v$1](Sources).dek" +} + +if [[ "$1" == "upload" ]]; then + deken_upload $2 +else + deken_prepare $1 +fi