scripts/: add script to fetch external resources on linux
[vamp-aubio-plugins.git] / scripts / resources
1 #! /bin/bash
2
3 # latest sdk source
4 VAMP_PLUGIN_SDK=https://code.soundsoftware.ac.uk/attachments/download/1520/vamp-plugin-sdk-2.6.tar.gz
5 VAMP_PLUGIN_SDK_ZIP=https://code.soundsoftware.ac.uk/attachments/download/1521/vamp-plugin-sdk-2.6.zip
6
7 # latest binaries
8 VAMP_PLUGIN_SDK_MSVC=https://code.soundsoftware.ac.uk/attachments/download/1513/vamp-plugin-sdk-2.6-staticlibs-win32-msvc.zip
9 VAMP_PLUGIN_SDK_OSX=https://code.soundsoftware.ac.uk/attachments/download/1512/vamp-plugin-sdk-2.6-binaries-osx.tar.gz
10 VAMP_PLUGIN_SDK_LINUX32=https://code.soundsoftware.ac.uk/attachments/download/1516/vamp-plugin-sdk-2.6-binaries-i686-linux.tar.gz
11 VAMP_PLUGIN_SDK_LINUX64=https://code.soundsoftware.ac.uk/attachments/download/1517/vamp-plugin-sdk-2.6-binaries-amd64-linux.tar.gz
12 VAMP_PLUGIN_SDK_MINGW=https://code.soundsoftware.ac.uk/attachments/download/1518/vamp-plugin-sdk-2.6-binaries-win32-mingw.zip
13
14 # helpers
15
16 function fetch {
17   target=`basename $1`
18   [ -f $target ] && echo found $target || ( wget $1 || curl -O $1 > $target )
19   tar xvf $target || unzip -x $target
20 }