diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-03-08 00:38:46 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-03-08 00:38:46 -0500 |
commit | 9b64a46d58ac7b26ecd1b7fe2379ea1ed076ed77 (patch) | |
tree | 785fda5e9bac2f2c990b9d807ba042963b71c66b | |
parent | fc95a005f12c6e2107b0e6f625459a041c6bee20 (diff) | |
download | calfuse-9b64a46d58ac7b26ecd1b7fe2379ea1ed076ed77.tar.gz |
Initial commit
-rw-r--r-- | contrib/README | 1 | ||||
-rwxr-xr-x | contrib/download_data | 23 |
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 |