#
################################################################################
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
# 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
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