From: Paul Brossier Date: Thu, 21 Jul 2016 21:07:13 +0000 (+0200) Subject: scripts/: add script to fetch external resources on linux X-Git-Tag: 0.5.1~72 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=ffa42f441998c80eaa5423a6ee90dd2333121e13;p=vamp-aubio-plugins.git scripts/: add script to fetch external resources on linux --- diff --git a/scripts/get_deps_linux.sh b/scripts/get_deps_linux.sh new file mode 100755 index 0000000..6098a25 --- /dev/null +++ b/scripts/get_deps_linux.sh @@ -0,0 +1,16 @@ +#! /bin/bash + + +source scripts/resources + +#rm -rf contrib/ +mkdir -p contrib/ + +pushd contrib + +for p in $VAMP_PLUGIN_SDK $VAMP_PLUGIN_SDK_LINUX32 $VAMP_PLUGIN_SDK_LINUX64 +do + fetch $p +done + +popd diff --git a/scripts/resources b/scripts/resources new file mode 100644 index 0000000..0accf50 --- /dev/null +++ b/scripts/resources @@ -0,0 +1,20 @@ +#! /bin/bash + +# latest sdk source +VAMP_PLUGIN_SDK=https://code.soundsoftware.ac.uk/attachments/download/1520/vamp-plugin-sdk-2.6.tar.gz +VAMP_PLUGIN_SDK_ZIP=https://code.soundsoftware.ac.uk/attachments/download/1521/vamp-plugin-sdk-2.6.zip + +# latest binaries +VAMP_PLUGIN_SDK_MSVC=https://code.soundsoftware.ac.uk/attachments/download/1513/vamp-plugin-sdk-2.6-staticlibs-win32-msvc.zip +VAMP_PLUGIN_SDK_OSX=https://code.soundsoftware.ac.uk/attachments/download/1512/vamp-plugin-sdk-2.6-binaries-osx.tar.gz +VAMP_PLUGIN_SDK_LINUX32=https://code.soundsoftware.ac.uk/attachments/download/1516/vamp-plugin-sdk-2.6-binaries-i686-linux.tar.gz +VAMP_PLUGIN_SDK_LINUX64=https://code.soundsoftware.ac.uk/attachments/download/1517/vamp-plugin-sdk-2.6-binaries-amd64-linux.tar.gz +VAMP_PLUGIN_SDK_MINGW=https://code.soundsoftware.ac.uk/attachments/download/1518/vamp-plugin-sdk-2.6-binaries-win32-mingw.zip + +# helpers + +function fetch { + target=`basename $1` + [ -f $target ] && echo found $target || ( wget $1 || curl -O $1 > $target ) + tar xvf $target || unzip -x $target +}