aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/README1
-rwxr-xr-xcontrib/download_data23
2 files changed, 24 insertions, 0 deletions
diff --git a/contrib/README b/contrib/README
new file mode 100644
index 0000000..1e4faaf
--- /dev/null
+++ b/contrib/README
@@ -0,0 +1 @@
+Execute contrib/download_data from the top level build directory.
diff --git a/contrib/download_data b/contrib/download_data
new file mode 100755
index 0000000..a9f9fa4
--- /dev/null
+++ b/contrib/download_data
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+url=https://bitbucket.org/jhunkeler/calfuse/downloads/calfuse-data.tar.bz2
+tarball=$(basename $url)
+
+if [ -z "$(which wget 2>/dev/null)" ]; then
+ echo Please install 'wget'.
+ exit 1
+fi
+
+if [ -z "$(which tar 2>/dev/null)" ]; then
+ echo Please install 'tar'.
+ exit 1
+fi
+
+if [ -f "$tarball" ]; then
+ echo '$tarball' already exists. Delete it and re-run this script.
+ exit 1
+fi
+
+wget $url
+echo Extracting $tarball ...
+tar -xf $tarball