Changeset 1798 for trunk/coin-functions
- Timestamp:
- Nov 3, 2010 8:09:29 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/coin-functions
r1797 r1798 392 392 if test -n "$bstb_filter" ; then 393 393 394 # If we're dealing with Data, we have to work a bit harder to find our394 # If we're dealing with old-style Data, we have to work a bit harder to find our 395 395 # project. See if any of the filtered candidates contain the correct 396 396 # project. 397 397 398 if expr "$bstb_URL" : '.*/Data/.*' >/dev/null 2>&1 ; then 399 bstb_projPat='.*'$bstb_proj'/.*' 400 # echo "Pattern: $bstb_projPat" 401 for bstb_ver in $bstb_filter ; do 402 if expr "$bstb_ver" : $bstb_verPat >/dev/null 2>&1 ; then 403 # echo " url: $bstb_listURL/$bstb_ver" 404 bstb_svnls2="`svn list $bstb_listURL/$bstb_ver`" 405 # echo " result: $bstb_svnls2" 406 if expr "$bstb_svnls2" : $bstb_projPat >/dev/null 2>&1 ; then 407 bstb_best=$bstb_ver 408 # echo " best: $bstb_best" 409 break 398 case "$bstb_URL" in 399 */Data/trunk/* | */Data/stable/* | */Data/releases/* ) 400 bstb_projPat='.*'$bstb_proj'/.*' 401 # echo "Pattern: $bstb_projPat" 402 for bstb_ver in $bstb_filter ; do 403 if expr "$bstb_ver" : $bstb_verPat >/dev/null 2>&1 ; then 404 # echo " url: $bstb_listURL/$bstb_ver" 405 bstb_svnls2="`svn list $bstb_listURL/$bstb_ver`" 406 # echo " result: $bstb_svnls2" 407 if expr "$bstb_svnls2" : $bstb_projPat >/dev/null 2>&1 ; then 408 bstb_best=$bstb_ver 409 # echo " best: $bstb_best" 410 break 411 fi 410 412 fi 411 fi 412 done413 bstb_bestURL=$bstb_listURL/$bstb_best$bstb_proj414 else415 bstb_bestURL=`echo $bstb_filter | sed -n -e 's|\([^/]*/\).*$|\1|p'`416 bstb_bestURL=$bstb_listURL/$bstb_bestURL417 fi418 413 done 414 bstb_bestURL=$bstb_listURL/$bstb_best$bstb_proj 415 ;; 416 *) 417 bstb_bestURL=`echo $bstb_filter | sed -n -e 's|\([^/]*/\).*$|\1|p'` 418 bstb_bestURL=$bstb_listURL/$bstb_bestURL 419 ;; 420 esac 419 421 fi 420 422 … … 489 491 if test -n "$bstb_filter" ; then 490 492 491 # If we're dealing with Data, we have to work a bit harder to find our493 # If we're dealing with old-style Data, we have to work a bit harder to find our 492 494 # project. See if any of the filtered candidates contain the correct 493 495 # project. 494 496 495 if expr "$bstb_URL" : '.*/Data/.*' >/dev/null 2>&1 ; then 496 bstb_projPat='.*'$bstb_proj'/.*' 497 # echo "Pattern: $bstb_projPat" 498 for bstb_ver in $bstb_filter ; do 499 if expr "$bstb_ver" : $bstb_verPat >/dev/null 2>&1 ; then 500 # echo " url: $bstb_listURL/$bstb_ver" 501 bstb_svnls2="`svn list $bstb_listURL/$bstb_ver`" 502 # echo " result: $bstb_svnls2" 503 if expr "$bstb_svnls2" : $bstb_projPat >/dev/null 2>&1 ; then 504 bstb_best=$bstb_ver 505 # echo " best: $bstb_best" 506 break 497 case "$bstb_URL" in 498 */Data/trunk/* | */Data/stable/* | */Data/releases/* ) 499 bstb_projPat='.*'$bstb_proj'/.*' 500 # echo "Pattern: $bstb_projPat" 501 for bstb_ver in $bstb_filter ; do 502 if expr "$bstb_ver" : $bstb_verPat >/dev/null 2>&1 ; then 503 # echo " url: $bstb_listURL/$bstb_ver" 504 bstb_svnls2="`svn list $bstb_listURL/$bstb_ver`" 505 # echo " result: $bstb_svnls2" 506 if expr "$bstb_svnls2" : $bstb_projPat >/dev/null 2>&1 ; then 507 bstb_best=$bstb_ver 508 # echo " best: $bstb_best" 509 break 510 fi 507 511 fi 508 fi 509 done 510 bstb_bestURL=$bstb_listURL/$bstb_best$bstb_proj 511 else 512 bstb_bestURL=`echo $bstb_filter | sed -n -e 's|\([^/]*/\).*$|\1|p'` 513 bstb_bestURL=$bstb_listURL/$bstb_bestURL 514 fi 512 done 513 bstb_bestURL=$bstb_listURL/$bstb_best$bstb_proj 514 ;; 515 *) 516 bstb_bestURL=`echo $bstb_filter | sed -n -e 's|\([^/]*/\).*$|\1|p'` 517 bstb_bestURL=$bstb_listURL/$bstb_bestURL 518 ;; 519 esac 515 520 516 521 fi
Note: See TracChangeset
for help on using the changeset viewer.