Changeset 11851


Ignore:
Timestamp:
04/02/12 10:52:46 (13 years ago)
Author:
Mathieu Morlighem
Message:

removed old boost package useless now, and fixed installation script

Location:
issm/trunk-jpl/externalpackages/boost
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/boost/install.sh

    r11834 r11851  
    11#!/bin/bash
    22
    3 step=2
    4 #1: download
    5 #2: install
     3#Some cleanup
     4rm -rf install boost_1_49_0 src
     5mkdir install src
    66
    7 if [[ $step == "1" ]];then
    8         #Some cleanup
    9         rm -rf install boost_1_49_0 src
    10         mkdir install src
     7#Untar
     8tar -zxvf  boost_1_49_0.tar.gz
    119
    12         #Untar
    13         tar -zxvf  boost_1_49_0.tar.gz
     10#Move boost into install directory
     11mv boost_1_49_0/* src
     12rm -rf boost_1_49_0
     13#Configure and compile
     14cd src
     15./bootstrap.sh \
     16        --prefix="$ISSM_TIER/externalpackages/boost/install" \
     17        --with-python=python3.2 \
     18        --with-python-root="$ISSM_TIER/externalpackages/python/install"
    1419
    15         #Move boost into install directory
    16         mv boost_1_49_0/* src
    17         rm -rf boost_1_49_0
    18 fi
     20#Compile boost
     21./bjam install
    1922
    20 if [[ $step == "2" ]];then
    21         #Configure and compile
    22         cd src
    23         ./bootstrap.sh --prefix=$ISSM_TIER/externalpackages/boost/install --with-python=python3.2 --with-python-root="$ISSM_TIER/externalpackages/python/install"
    24 
    25         #Compile boost
    26         if [ -z $1 ];
    27         then
    28                 ./bjam install
    29         else
    30                 ./bjam -jx $1 install
    31         fi
    32 
    33         #put bjam into install also:
    34         mkdir ../install/bin
    35         cp bjam ../install/bin
    36 
    37 fi
     23#put bjam into install also:
     24mkdir ../install/bin
     25cp bjam ../install/bin
Note: See TracChangeset for help on using the changeset viewer.