Changeset 20387


Ignore:
Timestamp:
03/30/16 15:30:53 (9 years ago)
Author:
Mathieu Morlighem
Message:

CHG: testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/jenkins/jenkins.sh

    r20385 r20387  
    4545#}}}
    4646
    47 #testing
     47#testing {{{
     48echo "======================================================";
     49echo "             Determining Installation type            "
     50echo "======================================================";
    4851ISSM_EXTERNALPACKAGES="none"
     52ISSM_RECONFIGURE="no"
    4953ISSM_COMPILATION="no"
    50 echo "Current svn version is $SVN_REVISION_1"
     54if [ -a $ISSM_DIR/svn_revision_old ]
     55then
     56        SVN_PREVIOUS=$(cat $ISSM_DIR/svn_revision_old)
     57        SVN_CURRENT=`$SVNVERSION`
     58        echo "Previous revision number: $SVN_PREVIOUS"
     59        echo "Current  revision number: $SVN_CURRENT"
     60
     61        svn diff -r $SVN_PREVIOUS:$SVN_CURRENT --summarize $ISSM_DIR > $ISSM_DIR/TEMP
     62        echo "List of changed files"
     63        cat $ISSM_DIR/TEMP
     64
     65        #Do we need to reinstall externalpackages?
     66        if [ ! -z "$(cat $ISSM_DIR/TEMP | grep externalpackages)" ] ; then
     67                echo "  -- checking for changed externalpackages... yes";
     68                ISSM_EXTERNALPACKAGES="install"
     69        else
     70                echo "  -- checking for changed externalpackages... no";
     71                ISSM_EXTERNALPACKAGES="none"
     72        fi
     73
     74        #Do we need to reconfigure
     75        if [ ! -z "$(cat $ISSM_DIR/TEMP | grep -e "Makefile.am" -e "m4" )" ] ; then
     76                echo "  -- checking for reconfiguration... yes";
     77                ISSM_RECONFIGURE="yes"
     78        else
     79                echo "  -- checking for reconfiguration... no";
     80                ISSM_RECONFIGURE="no"
     81        fi
     82
     83        #Do we need to recompile
     84        if [ ! -z "$(cat $ISSM_DIR/TEMP | grep -e "\.cpp" -e "\.h" )" ] ; then
     85                echo "  -- checking for recompilation... yes";
     86                ISSM_COMPILATION="yes"
     87        else
     88                echo "  -- checking for recompilation... no";
     89                ISSM_COMPILATION="no"
     90        fi
     91
     92else
     93        ISSM_EXTERNALPACKAGES="install"
     94        ISSM_RECONFIGURE="yes"
     95        ISSM_COMPILATION="yes"
     96fi
     97echo "Recording current svn version: $SVN_REVISION_1"
    5198echo $SVN_REVISION_1 > $ISSM_DIR/svn_revision_old
     99#}}}
    52100
    53101#install/copy/none external packages    (ISSM_EXTERNALPACKAGES){{{
     
    163211then
    164212        cd $ISSM_DIR
    165         make uninstall
    166         make distclean
    167         ./scripts/automakererun.sh
    168    eval "./configure $ISSM_CONFIG"
     213        if [ "$ISSM_RECONFIGURE" == "yes" ]
     214        then
     215                echo "======================================================";
     216                echo "             Cleaning up and reconfiguring            "
     217                echo "======================================================";
     218                make uninstall
     219                make distclean
     220                ./scripts/automakererun.sh
     221                eval "./configure $ISSM_CONFIG"
     222        fi
    169223
    170224        #4: compile and install ISSM
     225        echo "======================================================";
     226        echo "                    Compiling ISSM                    "
     227        echo "======================================================";
    171228        if [ $NUMCPUS_INSTALL -gt 1 ]; then
    172229                echo "Making with " $NUMCPUS_INSTALL " cpus"
Note: See TracChangeset for help on using the changeset viewer.