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 else # Build system = HP
51 if [ $PLATFORM = "aix" ]
54 elif [ $PLATFORM = "sun" ]
56 USER=`/usr/ucb/whoami`
58 USER=`/usr/bin/whoami`
61 if [ $USER != "root" ]
64 echo "You must be root to run this script"
69 echo "updateCDE: This script re-installs bits from the daily build trees."
74 PATH=/bin:/usr/bin:/etc:/usr/bin/X11:
77 XCOMM Change the run level to kill all dtlogins
79 if [ $PLATFORM = "hp-ux" ]
82 elif [ $PLATFORM = "sun" ]
84 CDE_INSTALLATION_TOP/config/dtlogin.rc stop
87 TOOL_DIR=$SOURCE_TREE/admin/IntegTools/updateTools
88 DB_TOOL_DIR=$SOURCE_TREE/admin/IntegTools/dbTools
89 export TOOL_DIR DB_TOOL_DIR
92 XCOMM kill any active Common Desktop Clients
94 echo "Stopping any Common Desktop Clients"
95 $TOOL_DIR/kfork.dtclients
96 $TOOL_DIR/kfork.dtclients
98 XCOMM Send all of the parameters to installDT
100 $DB_TOOL_DIR/installCDE $*
102 XCOMM Change run level to restart dtlogin
104 if [ $PLATFORM = "hp-ux" ];
107 elif [ $PLATFORM = "sun" ]
109 CDE_INSTALLATION_TOP/config/dtlogin.rc start
112 echo "Done updating Common Desktop Bits."
114 echo "Updated Common Desktop Bits on: " > /etc/motd
116 echo "via the $TOOL_DIR/updateCDE script" >> /etc/motd
120 XCOMM ################### eof #################