From 9b64a46d58ac7b26ecd1b7fe2379ea1ed076ed77 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 8 Mar 2015 00:38:46 -0500 Subject: Initial commit --- contrib/README | 1 + contrib/download_data | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 contrib/README create mode 100755 contrib/download_data (limited to 'contrib') 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 -- cgit