Changeset 25901
- Timestamp:
- 12/19/20 15:09:43 (4 years ago)
- Location:
- issm/trunk-jpl/packagers/mac
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/packagers/mac/commit_for_signing-issm-mac-binaries-matlab.sh
r25895 r25901 26 26 # - packagers/mac/complete-issm-mac-binaries-matlab.sh 27 27 # - packagers/mac/sign-issm-mac-binaries-matlab.sh 28 # 29 # TODO: 30 # - Generalize checkout_*_repo_copy and validate_*_repo_copy functions (e.g. 31 # pass 'signed' or 'unsigned' as argument) 28 32 ################################################################################ 29 33 … … 97 101 rm -rf ${SIGNED_REPO_COPY} 98 102 checkout_signed_repo_copy 103 fi 104 } 105 validate_unsigned_repo_copy(){ 106 # Validate copy of repository for unsigned binaries (e.g. 107 # 'Check-out Strategy' was set to 'Use 'svn update' as much as possible'; 108 # initial checkout failed) 109 if [[ ! -d ${UNSIGNED_REPO_COPY} || ! -d ${UNSIGNED_REPO_COPY}/.svn ]]; then 110 rm -rf ${UNSIGNED_REPO_COPY} 111 checkout_unsigned_repo_copy 99 112 fi 100 113 } … … 164 177 165 178 # Check out copy of repository for unsigned packages 166 checkout_unsigned_repo_copy179 validate_unsigned_repo_copy 167 180 168 181 if [ ${retrigger_signing} -eq 0 ]; then -
issm/trunk-jpl/packagers/mac/commit_for_signing-issm-mac-binaries-python.sh
r25895 r25901 26 26 # - packagers/mac/complete-issm-mac-binaries-python.sh 27 27 # - packagers/mac/sign-issm-mac-binaries-python.sh 28 # 29 # TODO: 30 # - Generalize checkout_*_repo_copy and validate_*_repo_copy functions (e.g. 31 # pass 'signed' or 'unsigned' as argument) 28 32 ################################################################################ 29 33 … … 97 101 rm -rf ${SIGNED_REPO_COPY} 98 102 checkout_signed_repo_copy 103 fi 104 } 105 validate_unsigned_repo_copy(){ 106 # Validate copy of repository for unsigned binaries (e.g. 107 # 'Check-out Strategy' was set to 'Use 'svn update' as much as possible'; 108 # initial checkout failed) 109 if [[ ! -d ${UNSIGNED_REPO_COPY} || ! -d ${UNSIGNED_REPO_COPY}/.svn ]]; then 110 rm -rf ${UNSIGNED_REPO_COPY} 111 checkout_unsigned_repo_copy 99 112 fi 100 113 } … … 164 177 165 178 # Check out copy of repository for unsigned packages 166 checkout_unsigned_repo_copy179 validate_unsigned_repo_copy 167 180 168 181 if [ ${retrigger_signing} -eq 0 ]; then -
issm/trunk-jpl/packagers/mac/package-issm-mac-binaries-python.sh
r25900 r25901 51 51 # 52 52 export PATH="${ISSM_DIR}/bin:$(getconf PATH)" # Ensure that we pick up binaries from 'bin' directory rather than 'externalpackages' 53 54 ## Functions55 #56 checkout_signed_repo_copy(){57 echo "Checking out copy of repository for signed packages"58 59 # NOTE: Get empty copy because we do not want to have to check out package60 # from previous signing.61 #62 svn checkout \63 --trust-server-cert \64 --non-interactive \65 --depth empty \66 --username ${USERNAME} \67 --password ${PASSWORD} \68 ${SIGNED_REPO_URL} \69 ${SIGNED_REPO_COPY} > /dev/null 2>&170 }71 checkout_unsigned_repo_copy(){72 echo "Checking out copy of repository for unsigned packages"73 svn checkout \74 --trust-server-cert \75 --non-interactive \76 --username ${USERNAME} \77 --password ${PASSWORD} \78 ${UNSIGNED_REPO_URL} \79 ${UNSIGNED_REPO_COPY} > /dev/null 2>&180 }81 validate_signed_repo_copy(){82 # Validate copy of repository for signed binaries (e.g.83 # 'Check-out Strategy' was set to 'Use 'svn update' as much as possible';84 # initial checkout failed)85 if [[ ! -d ${SIGNED_REPO_COPY} || ! -d ${SIGNED_REPO_COPY}/.svn ]]; then86 rm -rf ${SIGNED_REPO_COPY}87 checkout_signed_repo_copy88 fi89 }90 53 91 54 ## Parse options
Note:
See TracChangeset
for help on using the changeset viewer.