Changeset 1845 for trunk/prepare_new_stable
- Timestamp:
- Nov 23, 2010 12:40:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prepare_new_stable
r1815 r1845 42 42 43 43 printHelp=0 44 ignoreBuildToolsMismatch=0 44 ignoreBuildToolsMismatch=no 45 mismatchBTExternals= 45 46 bumpMajor=0 46 47 suppressCheckout=0 … … 82 83 case "$1" in 83 84 -h* | --h*) printHelp=1 ;; 84 -i* | --i*) ignoreBuildToolsMismatch=1 ;; 85 -i* | --i*) 86 if expr "$1" : '.*-i.*=.*' 2>&1 >/dev/null ; then 87 mismatchBTExternals=`echo $1 | sed -n -e 's/[^=]*=\(.*\)/\1/p'` 88 else 89 shift 90 mismatchBTExternals=$1 91 fi 92 if test "x$mismatchBTExternals" = "xall" ; then 93 ignoreBuildToolsMismatch=all 94 else 95 ignoreBuildToolsMismatch=partial 96 fi 97 ;; 85 98 -m* | --m*) bumpMajor=1 ;; 86 99 -p* | --p*) suppressCheckout=1 ;; … … 215 228 -b <BuildToolsURL> URL for BuildTools; required to generate a release 216 229 for a ThirdParty or Data project. 217 -i Ignore BuildTools version mismatches in externals. 230 -i <projectlist> Ignore BuildTools version mismatches for the listed 231 externals (comma-separated list of project names, 232 e.g., -i Osi,Cbc). '-i all' ignores all mismatches. 218 233 -p Suppress checkout (useful for testing) 219 234 -m Bump the major version number. 220 235 -t <project-list> Suppress conversion from trunk to stable for the 221 236 listed externals (comma-separated list of project 222 names , e.g., -t Osi,Cbc).237 names). 223 238 -x <project-list> Remove the listed projects from the list of externals 224 239 (comma-separated list of project names). … … 503 518 testResult=`compareURLVersions "$srcBTURL" "$extBTURL"` 504 519 if test $testResult = no ; then 505 echo " WARNING: BuildTools mismatch: $ext_url_notail uses $extBTURL" 506 if test $ignoreBuildToolsMismatch = 0 ; then 507 buildtoolsMismatch=1 520 if test $ignoreBuildToolsMismatch = all || \ 521 expr "$mismatchBTExternals" : '.*'$ext_proj'.*' 2>&1 >/dev/null ; then 522 echo " WARNING: BuildTools mismatch: $ext_url_notail uses $extBTURL" 523 else 524 buildtoolsMismatch=1 525 echo " ERROR: BuildTools mismatch: $ext_url_notail uses $extBTURL" 508 526 fi 509 527 fi … … 517 535 done 518 536 519 # If we have a BuildTools mismatch, and mismatch is not permitted,exit.520 521 if test $buildtoolsMismatch -gt $ignoreBuildToolsMismatch; then537 # If we have a BuildTools mismatch, exit. 538 539 if test $buildtoolsMismatch = 1 ; then 522 540 echo "Exiting due to BuildTools mismatches; use -i to ignore." 523 541 exit 2 … … 526 544 $cmdDir/set_externals Dependencies 527 545 546 # Try three times to check out externals before conceding defeat. 547 528 548 echo '' 529 549 echo '===> Checking out externals ...' 530 550 echo '' 531 551 532 svn update 552 svn update || 553 { echo "Retry 1 ... " ; svn update ; } || 554 { echo "Retry 2 ... " ; svn update ; } || 555 { echo "Checkout of externals failed. Aborting." ; exit 3 ; } 533 556 534 557 # Run any scripts to acquire ThirdParty code.
Note: See TracChangeset
for help on using the changeset viewer.