source: issm/trunk/externalpackages/boost/install.sh@ 10145

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

install crashes if number of cpus not specified

  • Property svn:executable set to *
File size: 559 bytes
Line 
1#!/bin/bash
2
3#get number of CPUS
4NUMCPUS=$1;
5
6#version of boost
7version=`echo *.tar.gz | sed 's/\.tar\.gz//g' | sed 's/boost_//g'`
8echo $version
9
10#Some cleanup
11rm -rf install boost_$version src
12
13#Create install directories
14mkdir install src
15
16#Untar
17tar -zxvf boost_$version.tar.gz
18
19#Move boost into install directory
20mv boost_$version/* src
21rm -rf boost_$version
22
23#Apply patches
24cd src
25
26#Configure
27./bootstrap.sh --prefix=$ISSM_TIER/externalpackages/boost/install
28
29#Compile boost
30if [ -z $NUMCPUS ];
31then
32 ./bjam install
33else
34 ./bjam -j$NUMCPUS install
35fi
Note: See TracBrowser for help on using the repository browser.