X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Fclearcase;h=1c33ad1f0471ffd0c0cc19be1b19a6211d03fa9d;hb=7c11b11a13e503cebddd3343aa77f26c48d06fc7;hp=3317a018f521004a43a2f877c4f0e19e9703f96a;hpb=1140ca8d56832ae529db0f353112ac192cdf9432;p=clearscm.git diff --git a/rc/clearcase b/rc/clearcase index 3317a01..1c33ad1 100644 --- a/rc/clearcase +++ b/rc/clearcase @@ -15,7 +15,10 @@ # ################################################################################ if [ $ARCHITECTURE = 'cygwin' ]; then - export CCHOME=$(cygpath -u "$(regtool get '/machine/SOFTWARE/Rational Software/RSINSTALLDIR' 2>/dev/null)"/Clearcase 2>/dev/null); + # The following should work but fails because they are using /c to mount + # the C drive and that messes things up. + export CCHOME=$(cygpath -u "$(regtool get '/machine/SOFTWARE/Atria/ClearCase/CurrentVersion/ProductHome' 2>/dev/null)" 2>/dev/null) + export CCHOME=/opt/rational/clearcase else export CCHOME="/opt/rational/clearcase" fi @@ -129,11 +132,11 @@ function lllock { # View related functions function setview { if [ $ARCHITECTURE = 'cygwin' ]; then - if [[ $1 = -* ]]; then - echo "The setview command with options is not supported on Windows" - return - fi - + if [[ $1 = -* ]]; then + echo "The setview command with options is not supported on Windows" + return + fi + # Save off where we are back=$PWD @@ -145,7 +148,7 @@ function setview { fi # Setup $VOBTAG_PREFIX - mount -f -o binary M:/$1 $LINUX_VOBTAG_PREFIX + mount -f -o binary $CLEARCASE_VIEW_DRIVE:/$1 $LINUX_VOBTAG_PREFIX # Start a bash shell bash