summaryrefslogtreecommitdiff
path: root/scripts/uni-build-dependencies.sh
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2013-06-09 04:49:21 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2013-06-09 04:49:21 (GMT)
commit49af42cfd0cababceac2dba04ac55bb0e10c2775 (patch)
tree1a62a75b90af087b0939ffb88e44abd3fa801c3f /scripts/uni-build-dependencies.sh
parentd27ab64d454c18ebd054c657d0bec9514a82bbd5 (diff)
a few fixes for netbsd
Diffstat (limited to 'scripts/uni-build-dependencies.sh')
-rwxr-xr-xscripts/uni-build-dependencies.sh23
1 files changed, 19 insertions, 4 deletions
diff --git a/scripts/uni-build-dependencies.sh b/scripts/uni-build-dependencies.sh
index 60dbb74..6596c8a 100755
--- a/scripts/uni-build-dependencies.sh
+++ b/scripts/uni-build-dependencies.sh
@@ -290,11 +290,26 @@ build_cgal()
ver3_7="curl --insecure -O https://gforge.inria.fr/frs/download.php/27641/CGAL-3.7.tar.gz"
vernull="echo already downloaded..skipping"
download_cmd=ver`echo $version | sed s/"\."/"_"/`
- if [ -e CGAL-$version.tar.gz ]; then download_cmd=vernull; fi
- if [ -e CGAL-$version.tar.bz2 ]; then download_cmd=vernull; fi
+
+ if [ -e CGAL-$version.tar.gz ]; then
+ download_cmd=vernull;
+ fi
+ if [ -e CGAL-$version.tar.bz2 ]; then
+ download_cmd=vernull;
+ fi
+
`eval echo "$"$download_cmd`
- if [ -e CGAL-$version.tar.gz ]; then tar xf CGAL-$version.tar.gz; fi
- if [ -e CGAL-$version.tar.bz2 ]; then tar xf CGAL-$version.tar.bz2; fi
+
+ zipper=gzip
+ suffix=gz
+ if [ -e CGAL-$version.tar.bz2 ]; then
+ zipper=bzip2
+ suffix=bz2
+ fi
+
+ $zipper -f -d CGAL-$version.tar.$suffix;
+ tar xf CGAL-$version.tar
+
cd CGAL-$version
# older cmakes have buggy FindBoost that can result in
contact: Jan Huwald // Impressum