scripts/: add script to fetch external resources on linux
authorPaul Brossier <piem@piem.org>
Thu, 21 Jul 2016 21:07:13 +0000 (23:07 +0200)
committerPaul Brossier <piem@piem.org>
Thu, 21 Jul 2016 21:07:13 +0000 (23:07 +0200)
scripts/get_deps_linux.sh [new file with mode: 0755]
scripts/resources [new file with mode: 0644]

diff --git a/scripts/get_deps_linux.sh b/scripts/get_deps_linux.sh
new file mode 100755 (executable)
index 0000000..6098a25
--- /dev/null
@@ -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 (file)
index 0000000..0accf50
--- /dev/null
@@ -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
+}