From ffa42f441998c80eaa5423a6ee90dd2333121e13 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 21 Jul 2016 23:07:13 +0200 Subject: [PATCH] scripts/: add script to fetch external resources on linux --- scripts/get_deps_linux.sh | 16 ++++++++++++++++ scripts/resources | 20 ++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100755 scripts/get_deps_linux.sh create mode 100644 scripts/resources 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 +} -- 2.11.0