2 # Upgrade Clearcase or Clearquest
4 rational_network_install_area="//sons-clearcase/Rational/Clearcase LT/install"
5 rational_network_install_area2="//sons-clearcase/Rational"
6 errorlog="$(cygpath -w $TMP)/error.log"
9 echo "Usage $me [clearcase | clearcaselt | clearquest]"
17 product=$(echo $1 | tr [:upper:] [:lower:])
19 if [ "$product" != "clearcase" -a \
20 "$product" != "clearquest" -a \
21 "$product" != "clearcaselt" ]; then
25 if [ "$product" = "clearcase" ]; then
26 rational_network_install_area="$rational_network_install_area2"
30 echo "$product upgrade"
32 echo "WARNING: Installation of this software requires a reboot!"
33 echo "Please make sure that you save any data before proceeding!"
37 while [ "$response" != "y" -a "$response" != "n" ]; do
38 echo -e "Continue with installation (Y/n)? \c"
40 response=$(echo $response | tr [:upper:] [:lower:])
43 if [ "$response" = "y" ]; then
44 install_dir="$rational_network_install_area"
45 if [ "$product" != "clearcase" ]; then
46 install_dir="$install_dir/setup"
48 if [ ! -d "$install_dir" ]; then
49 echo "Error: Unable to find installation area: $install_dir"
53 echo "Performing silent installation of $product..."
54 if [ "$product" = "clearcase" ]; then
55 setup /noccdoc /s /f1.\\$product.iss /f2"$errorlog"
57 rssetup -silent -response:.\\$product.ini
60 echo "Installation of $product aborted"