- Timestamp:
- 12/17/20 10:17:01 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/packagers/mac/package-issm-mac-binaries-matlab.sh ¶
r25875 r25879 105 105 --password ${PASSWORD} \ 106 106 ${SIGNED_REPO_URL} \ 107 ${SIGNED_REPO_COPY} 107 ${SIGNED_REPO_COPY} > /dev/null 2>&1 108 108 } 109 109 checkout_unsigned_repo_copy(){ … … 115 115 --password ${PASSWORD} \ 116 116 ${UNSIGNED_REPO_URL} \ 117 ${UNSIGNED_REPO_COPY} 117 ${UNSIGNED_REPO_COPY} > /dev/null 2>&1 118 118 } 119 119 validate_signed_repo_copy(){ … … 246 246 # Check that MATLAB did not exit in error 247 247 matlabExitCode=`echo $?` 248 matlabExitedInError=`grep -E "Activation cannot proceed| license|Error" matlab.log | wc -l`248 matlabExitedInError=`grep -E "Activation cannot proceed|Error in matlab_run" matlab.log | wc -l` 249 249 250 250 if [[ ${matlabExitCode} -ne 0 || ${matlabExitedInError} -ne 0 ]]; then … … 306 306 --message "ADD: New lock file" ${SIGNED_REPO_COPY} 307 307 308 # Save current working copy revision number 309 svn up ${SIGNED_REPO_COPY} 310 CURRENT_REV=$(svn info --show-item last-changed-revision ${SIGNED_REPO_COPY}) 311 312 # Check out copy of SVN repository for unsigned packages 308 # Check out copy of repository for unsigned packages 313 309 checkout_unsigned_repo_copy 314 310 … … 335 331 echo "Attempting to sign existing package again" 336 332 echo $(date +'%Y-%m-%d-%H-%M-%S') > ${UNSIGNED_REPO_COPY}/${RETRIGGER_SIGNING_FILE} # Write datetime stamp to file to ensure modification is made 337 sv n add ${UNSIGNED_REPO_COPY}/${RETRIGGER_SIGNING_FILE} > /dev/null 2>&1333 svcheckout_unsigned_repo_copyn add ${UNSIGNED_REPO_COPY}/${RETRIGGER_SIGNING_FILE} > /dev/null 2>&1 338 334 svn commit \ 339 335 --trust-server-cert \ … … 353 349 sleep ${SIGNING_CHECK_PERIOD} 354 350 svn up ${SIGNED_REPO_COPY} 355 NEW_REV=$(svn info --show-item last-changed-revision ${SIGNED_REPO_COPY}) 356 357 if [ ${NEW_REV} -ne ${CURRENT_REV} ]; then 351 352 if [ ! -f ${SIGNED_REPO_COPY}/${SIGNING_LOCK_FILE} ]; then 358 353 IN_PROCESS=0 359 354 355 # Retrieve notarization lock file 360 356 svn up ${SIGNED_REPO_COPY}/${NOTARIZATION_LOGFILE} 361 svn up ${SIGNED_REPO_COPY}/${COMPRESSED_PKG} 362 363 # No error, so check status 357 358 # Check status 364 359 STATUS=$(grep 'Status:' ${SIGNED_REPO_COPY}/${NOTARIZATION_LOGFILE} | sed -e 's/[[:space:]]*Status: //') 365 360 if [[ "${STATUS}" == "success" ]]; then … … 387 382 # Handle result of signing 388 383 if [ ${SUCCESS} -eq 1 ]; then 384 # Retrieve signed and notarized package 385 svn up ${SIGNED_REPO_COPY}/${COMPRESSED_PKG} 386 389 387 # Transfer signed package to ISSM Web site 390 388 echo "Transferring signed package to ISSM Web site"
Note:
See TracChangeset
for help on using the changeset viewer.