Changeset 18408


Ignore:
Timestamp:
08/15/14 16:57:21 (11 years ago)
Author:
glperez
Message:

CHG: Added logic to catch build errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/packagers/macosx/install.sh

    r18407 r18408  
    3232# Externalpackages
    3333# {{{
    34 echo 'Installing external packages...'
     34echo "\nInstalling external packages...\n"
    3535
    3636cd "$ISSM_DIR/externalpackages/cmake"
     
    101101autoreconf -if &> /dev/null
    102102
     103if [ $? -ne 0 ]; then
     104   echo "FAILED TO AUTORECONF!"
     105   exit 1;
     106fi
     107
    103108echo "Configuring..."
    104109$ISSM_DIR/configs/config-macosx64-static.sh &> /dev/null
    105110
     111if [ $? -ne 0 ]; then
     112   echo "FAILED TO CONFIGURE!"
     113   exit 1;
     114fi
     115
    106116echo "Building..."
    107 make $1 &> /dev/null
     117if [ -z $1 ]; then
     118   make -j$1 &> /dev/null
     119else
     120   make &> /dev/null
     121fi
     122
     123if [ $? -ne 0 ]; then
     124   echo "FAILED TO BUILD!"
     125   exit 1;
     126fi
    108127
    109128echo "Installing..."
    110129make install &> /dev/null
     130
     131if [ $? -ne 0 ]; then
     132   echo "FAILED TO INSTALL!"
     133   exit 1;
     134fi
Note: See TracChangeset for help on using the changeset viewer.