2 ################################################################################
4 # File: $RCSfile: multisite,v $
5 # Revision: $Revision: 1.6 $
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: 2011/03/07 22:11:23 $
14 # (c) Copyright 2000-2005, Andrew@DeFaria.com, all rights reserved.
16 ################################################################################
17 if [ $ARCHITECTURE = "cygwin" ]; then
18 export MSHOME=$(cygpath -u "$(regtool get '/machine/SOFTWARE/Rational Software/RSINSTALLDIR' 2>/dev/null)" 2>/dev/null)
20 export MSHOME=/opt/rational/clearcase/
23 if [ ! -d "$MSHOME" ]; then
28 export MULTITOOL="${MSHOME}bin/multitool"
30 if [ -x "$MULTITOOL" ]; then
31 export CLEARCASE_BLD_HOST_TYPE=Windows
32 export SLOGS=$LOGS/sync_logs
34 if [ $ARCHITECTURE = "cygwin" ]; then
35 export SB="${MSHOME}var/shipping/ms_ship"
37 export SB="/var/adm/rational/clearcase/shipping/ms_ship"
42 if [ -x "$MULTITOOL" ]; then
45 echo "MultiSite is not installed on this system!"
50 "$MULTITOOL" lspacket "$@"
54 "$MULTITOOL" lspacket -long "$@"
58 "$MULTITOOL" lsreplica -invob "$@"
62 "$MULTITOOL" lsreplica -long -invob "$@"
66 "$MULTITOOL" lsepoch -invob "$@"
70 "$MULTITOOL" lsepoch -long -invob "$@"
74 "$MULTITOOL" chepoch -invob "$@"
77 function shipping_server {
78 $MSHOME/etc/shipping_server "$@"
82 $MSHOME/etc/mkorder "$@"
85 function syncreplica {
86 "$MULTITOOL" syncreplica "$@"