2 XCOMM $XConsortium: updateCDE.src /main/6 1996/04/23 11:10:35 drk $
4 XCOMM updateCDE or updateCDE.and.stomp.current.bits
6 XCOMM Jerrie Andreas 10/5/93
8 XCOMM This script kills any desktop "dt" clients that are currently running,
9 XCOMM and then calls installCDE to install bits, passing all parameters to
10 XCOMM installCDE. It then (on hp systems) changes run level to 5, the default
11 XCOMM run level for starting the desktop.
13 XCOMM This script uses the same options as installCDE.
15 XCOMM Example: updateCDE -s /x/cde_hp700_90 -t /x/cde_savetars
17 XCOMM #########################################################################
23 echo "Usage: updateCDE -s <source> [options]"
29 echo "First argument must be the -s option."
35 XCOMM Set which system we are on
41 if [ $BUILDSYSTEM = "AIX" ]
44 elif [ $BUILDSYSTEM = "SunOS" ]
47 elif [ $BUILDSYSTEM = "OSF1" ]
50 else # Build system = HP
54 if [ $PLATFORM = "aix" ]
57 elif [ $PLATFORM = "sun" ]
59 USER=`/usr/ucb/whoami`
61 USER=`/usr/bin/whoami`
64 if [ $USER != "root" ]
67 echo "You must be root to run this script"
72 echo "updateCDE: This script re-installs bits from the daily build trees."
77 PATH=/bin:/usr/bin:/etc:/usr/bin/X11:
80 XCOMM Change the run level to kill all dtlogins
82 if [ $PLATFORM = "hp-ux" ]
85 elif [ $PLATFORM = "sun" ]
87 CDE_INSTALLATION_TOP/config/dtlogin.rc stop
90 TOOL_DIR=$SOURCE_TREE/admin/IntegTools/updateTools
91 DB_TOOL_DIR=$SOURCE_TREE/admin/IntegTools/dbTools
92 export TOOL_DIR DB_TOOL_DIR
95 XCOMM kill any active Common Desktop Clients
97 echo "Stopping any Common Desktop Clients"
98 $TOOL_DIR/kfork.dtclients
99 $TOOL_DIR/kfork.dtclients
101 XCOMM Send all of the parameters to installDT
103 $DB_TOOL_DIR/installCDE $*
105 XCOMM Change run level to restart dtlogin
107 if [ $PLATFORM = "hp-ux" ];
110 elif [ $PLATFORM = "sun" ]
112 CDE_INSTALLATION_TOP/config/dtlogin.rc start
115 echo "Done updating Common Desktop Bits."
117 echo "Updated Common Desktop Bits on: " > /etc/motd
119 echo "via the $TOOL_DIR/updateCDE script" >> /etc/motd
123 XCOMM ################### eof #################