Changeset 20387
- Timestamp:
- 03/30/16 15:30:53 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/jenkins/jenkins.sh
r20385 r20387 45 45 #}}} 46 46 47 #testing 47 #testing {{{ 48 echo "======================================================"; 49 echo " Determining Installation type " 50 echo "======================================================"; 48 51 ISSM_EXTERNALPACKAGES="none" 52 ISSM_RECONFIGURE="no" 49 53 ISSM_COMPILATION="no" 50 echo "Current svn version is $SVN_REVISION_1" 54 if [ -a $ISSM_DIR/svn_revision_old ] 55 then 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 92 else 93 ISSM_EXTERNALPACKAGES="install" 94 ISSM_RECONFIGURE="yes" 95 ISSM_COMPILATION="yes" 96 fi 97 echo "Recording current svn version: $SVN_REVISION_1" 51 98 echo $SVN_REVISION_1 > $ISSM_DIR/svn_revision_old 99 #}}} 52 100 53 101 #install/copy/none external packages (ISSM_EXTERNALPACKAGES){{{ … … 163 211 then 164 212 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 169 223 170 224 #4: compile and install ISSM 225 echo "======================================================"; 226 echo " Compiling ISSM " 227 echo "======================================================"; 171 228 if [ $NUMCPUS_INSTALL -gt 1 ]; then 172 229 echo "Making with " $NUMCPUS_INSTALL " cpus"
Note:
See TracChangeset
for help on using the changeset viewer.