2 ################################################################################
4 # File: $RCSfile: multisite,v $
5 # Revision: $Revision: 1.4 $
6 # Description: This script set up some useful environment variables and aliases
7 # for MultiSite execution. File should be sourced (e.g .
9 # Author: Andrew@DeFaria.com
10 # Created: Wed Jun 5 21:08:03 PDT 1996
11 # Modified: $Date: 2005/12/30 08:36:46 $
14 # (c) Copyright 2000-2005, Andrew@DeFaria.com, all rights reserved.
16 ################################################################################
17 if [ $ARCH = "cygwin" ]; then
18 export MSHOME=${MSHOME:-"$SYSTEMDRIVE/Program Files/Rational/ClearCase"}
20 export MSHOME=/opt/rational/clearcase
23 if [ ! -d "$MSHOME" ]; then
28 export MULTITOOL="$MSHOME/bin/multitool"
30 if [ -x "$MULTITOOL" ]; then
31 export CCHOME=${CCHOME:-"$SYSTEMDRIVE/Program Files/Rational/Multisite"}
32 export CLEARCASE_BLD_HOST_TYPE=Windows
33 export SLOGS=$LOGS/sync_logs
34 export SB="$CCHOME/var/shipping/ms_ship"
38 if [ -x "$MULTITOOL" ]; then
41 echo "MultiSite is not installed on this system!"
46 "$MULTITOOL" lspacket "$@"
50 "$MULTITOOL" lspacket -long "$@"
54 "$MULTITOOL" lsreplica -invob "$@"
58 "$MULTITOOL" lsreplica -long -invob "$@"
62 "$MULTITOOL" lsepoch -invob "$@"
66 "$MULTITOOL" lsepoch -long -invob "$@"
70 "$MULTITOOL" chepoch -invob "$@"
73 function shipping_server {
74 $MSHOME/etc/shipping_server "$@"
78 $MSHOME/etc/mkorder "$@"
81 function syncreplica {
82 "$MULTITOOL" syncreplica "$@"