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

Last change on this file since 12189 was 12189, checked in by Mathieu Morlighem, 13 years ago

Deleted all externalpackage from trunk, use python script to download from issm website

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