Changeset 1512


Ignore:
Timestamp:
08/03/09 14:43:38 (16 years ago)
Author:
Mathieu Morlighem
Message:

numcpus is an option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/externalpackages/gdal/install.sh

    r22 r1512  
    11#!/bin/bash
    22
    3 #Get number of cpus on current platform
    4 NUMCPUS=`grep -c processor /proc/cpuinfo`;
     3#Get number of cpus
     4NUMCPUS=$1;
    55
    66#version of gdal
     
    2929patch -R GDALmake.opt ../GDALmake.opt.patch
    3030
    31 #Compile gdal
    32 make  -j $NUMCPUS
    33 
    34 #Install gdal
    35 make  install
     31#Compile and install gdal
     32if [ -z $NUMCPUS ];
     33then
     34        make
     35        make install
     36else
     37        make  -j $NUMCPUS
     38        make  -j $NUMCPUS install
     39fi
Note: See TracChangeset for help on using the changeset viewer.