Skip to content

Commit

Permalink
fix script [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreguillot committed Jul 27, 2018
1 parent 418f6b7 commit afc92e9
Showing 1 changed file with 48 additions and 50 deletions.
98 changes: 48 additions & 50 deletions deken/FaustDeken.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit afc92e9

Please sign in to comment.