source: issm/trunk-jpl/externalpackages/gsl/install-macosx64.sh@ 13246

Last change on this file since 13246 was 13246, checked in by seroussi, 13 years ago

CHG: added set -eu in all installation files to stop if an error occurs

  • Property svn:executable set to *
File size: 532 bytes
Line 
1#!/bin/bash
2set -eu
3
4#Some cleanup
5rm -rf src install gsl-1.15
6mkdir src install
7
8#Download from ISSM server
9$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/gsl-1.15.tar.gz' 'gsl-1.15.tar.gz'
10
11#Untar
12tar -zxvf gsl-1.15.tar.gz
13
14#Move gsl into src directory
15mv gsl-1.15/* src
16rm -rf gsl-1.15
17
18#Configure gsl
19cd src
20
21export CFLAGS=" -arch x86_64"
22
23./configure \
24 --prefix="$ISSM_DIR/externalpackages/gsl/install"
25
26#Compile gsl
27if [ -z $1 ]; then
28 make
29else
30 make -j $1
31fi
32make install
Note: See TracBrowser for help on using the repository browser.