crap/get_eigen

19 lines
458 B
Text
Raw Permalink Normal View History

2015-12-10 07:25:23 -08:00
#!/usr/bin/env bash
set -e
2016-11-07 17:32:18 -08:00
a='eigen-eigen-b9cd8366d4e8'
2015-12-10 07:25:23 -08:00
gz="${a}.tar.gz"
2016-11-07 17:32:18 -08:00
url='https://bitbucket.org/eigen/eigen/get/3.2.10.tar.gz'
2015-12-10 07:25:23 -08:00
SRCDIR="$(readlink -f "$(dirname "$0")" )"
cd "$SRCDIR"
# specifically use -o instead of >
# because cygwin/msys will attempt to convert EOLs
# which is obviously invalid for a binary file
[ -s "$gz" ] || curl -LSs --cacert cacert.pem "$url" -o "$gz"
tar xzf "$gz"
[ -d Eigen ] && rm -r Eigen
mv "$a/Eigen" Eigen
rm -r "$a"