source: issm/trunk-jpl/externalpackages/colpack/install.sh@ 13249

Last change on this file since 13249 was 13249, checked in by seroussi, 12 years ago

BUG: fixed installation scripts when checking for number of inputs

  • Property svn:executable set to *
File size: 432 bytes
RevLine 
[9713]1#!/bin/bash
[13246]2set -eu
[9713]3
4#Erase install
5rm -rf install src ColPack
6
[12189]7#Download from ISSM server
8$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/ColPack-1.0.3.tar.gz' 'ColPack-1.0.3.tar.gz'
9
[9713]10#install directory
11mkdir src
[11101]12tar -zxvf ColPack-1.0.3.tar.gz
[9713]13mv ColPack/* src
14rm -rf ColPack
15
16#compile
17cd src
[13249]18if [ $# -eq 0 ]; then
[11128]19 make
20else
21 make -j $1
22fi
[9713]23cd ..
24
25#install
26ln -s src/build ./install
Note: See TracBrowser for help on using the repository browser.