Changeset 27635


Ignore:
Timestamp:
06/17/13 17:58:31 (8 years ago)
Author:
ak19
Message:

Checking return status of compilation so it stops on error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/makegs2.sh

    r27134 r27635  
    4646    cd $gnomelib
    4747    ./CASCADE-MAKE.sh
     48    gnomestatus=$?
     49    if [ $gnomestatus != 0 ] ; then
     50        echo "****************************************"
     51        echo "@@@ Failed to compile up gnomelib successfully"       
     52        echo "****************************************"
     53        exit -1
     54    fi
    4855    #cd $gsdlhome
    4956    fi
     
    6572
    6673# 4. now can compile as usual, having set up the environment for wvware
     74# chain the commands with && so it stops at that stage after an error
    6775cd $gsdlhome
    68 ./configure --enable-apache-httpd
    69 make
    70 make install
     76./configure --enable-apache-httpd \
     77  && make \
     78  && make install
     79
     80status=$?
     81echo "****************************************"
     82if [ $status = 0 ] ; then
     83    # 5. Message to warn user that the env of this x-term uses gnome-lib
     84    # and GUIs may not work from this console
     85
     86    echo "*** The environment for this console has been set to compile Greenstone with gnome-lib."
     87    echo "*** As a result, graphical applications may not work well."
     88    echo "*** In such a case, open a new console."
     89
     90else
     91    echo "@@@ Error compiling up Greenstone. Return status: $status"
     92fi
     93echo "****************************************"   
    7194
    7295
    73 # 5. Message to warn user that the env of this x-term uses gnome-lib
    74 # and GUIs may not work from this console
    75 echo "****************************************"
    76 echo "*** The environment for this console has been set to compile Greenstone with gnome-lib."
    77 echo "*** As a result, graphical applications may not work well."
    78 echo "*** In such a case, open a new console."
    79 echo "****************************************"
     96
Note: See TracChangeset for help on using the changeset viewer.