2 XCOMM $XConsortium: installCDE.src /main/20 1996/11/25 14:21:13 drk $
5 XCOMM This script uses the 'CDE' databases to install either the Desktop
6 XCOMM environment on a specified machine or creates a tar ball to be used
7 XCOMM in an install process.
9 XCOMM this script accepts the following parameters:
10 XCOMM -s <source> -- The top of build tree where the files are
12 XCOMM -z <package> -- The desktop install package
14 XCOMM Optional parameters:
16 XCOMM -t <package destination> -- where to store install package
17 XCOMM -pI <actual install location> -- where CDE_INSTALLATION_TOP will be linked to.
18 XCOMM -pC <actual config location> -- where CDE_CONFIGURATION_TOP will be linked to.
19 XCOMM -pV <actual var location> -- where CDE_LOGFILES_TOP will be linked to.
20 XCOMM -a <alternate udb directory>
21 XCOMM -f <filesets> -- a quoted, space-separated list of
22 XCOMM filesets to load. The .udb extension
23 XCOMM is not required.
25 XCOMM -clean -- remove the temporary, configuration and installation
27 XCOMM -cleanTwo-- remove the temporary and installation directories
28 XCOMM but NOT the configuration directory
29 XCOMM -cleanEtc-- remove the configuration directories
30 XCOMM -prog -- load only the development environment
31 XCOMM -runtime -- load only the runtime environment
32 XCOMM -pack -- create packing list
33 XCOMM -pseudo -- don't configure the desktop
34 XCOMM -nocompress -- don't compress the tarball (-t only)
36 XCOMM -Lang -- load the localized filesets
37 XCOMM -LinkStepOnly -- set up the -pI, -pC, and -pV links
39 XCOMM -DontRunScripts -- stop after installation
40 XCOMM -RunScriptsOnly -- only execute the scripts
41 XCOMM -configureOnly -- only configure the desktop
43 XCOMM ##########################################################################
48 LOGFILE="installCDE.$$.log"
50 REVISION="$(echo "$Revision: /main/20 $" | awk '{print $2}')"
54 /bin/echo "$1" | tee -a $LOGFILE
59 Log "\nGenerating UNIX Desktop install package $DATE in $TARBALL_LOCATION"
61 HASH create installable tarball
63 Log "Creating tarball..."
66 mkdir -p $TARBALL_LOCATION/$DIRNAME
68 echo $DATE >$LOGFILES_LOCATION/.build.$DATE
69 chown bin $LOGFILES_LOCATION/.build.$DATE
71 if [ "$COMPRESS_TARBALL" = "yes" ]; then
72 tar -cf - $INSTALL_LOCATION/STAR \
73 2>$TARBALL_LOCATION/$DIRNAME/extract.err |
74 compress -c >$TARBALL_LOCATION/$DIRNAME/dttar.Z
76 tar -cf $TARBALL_LOCATION/$DIRNAME/dt.tar \
77 $INSTALL_LOCATION/STAR \
78 2>$TARBALL_LOCATION/$DIRNAME/extract.err 2>&1
81 if [ "$ACTUAL_INSTALLATION_LOC" = "" ]; then
82 actualInstallDir=$INSTALL_LOCATION
84 actualInstallDir=$ACTUAL_INSTALLATION_LOC
86 let size=$(du -s $actualInstallDir | awk '{print $1}')*512
88 HASH load installation fileset *after* tarball generated
89 LoadFileSet "" "CDE-INSTALL"
91 HASH create config dir
92 destPost=$TARBALL_LOCATION/$DIRNAME/config
95 HASH copy config and platform config scripts
96 src=$INSTALL_LOCATION/install/$PLATFORM_SCRIPT_DIR
97 cp $src/config/STAR.cfg $destPost
99 HASH copy this script and install.dt platform overrides
100 cp $src/install.dto $TARBALL_LOCATION/$DIRNAME/install.dto
101 cp $src/install.cde $TARBALL_LOCATION/$DIRNAME/install.cde
102 chmod 755 $TARBALL_LOCATION/$DIRNAME/install.cde
108 cat >$TARBALL_LOCATION/$DIRNAME/dt.pkg <<FIN
112 COMPRESSED: $COMPRESS_TARBALL
114 CL: $ORIGINAL_COMMAND_LINE
115 FILESETS: $DATABASE_FILES
118 cat >$TARBALL_LOCATION/$DIRNAME/build.status <<FIN
122 OVERALL STATUS: <not yet tested>
123 OVERALL PERFORMANCE: <not yet tested>
124 MAJOR PROBLEMS: <not yet tested>
128 chmod g+w $TARBALL_LOCATION/$DIRNAME/build.status
136 if [ "$BUILD_TREE" = "" ]; then
137 ScriptName=$3 # use short config file name (foo.cfg)
139 ScriptName=$2 # use long config file name (configFoo)
142 if [ $CDECONFIGDIR = "CONFIG" ]; then
143 typeset -u ScriptName
146 test_string=${DATABASE_FILES#*$FilesetName}
147 if (( ${#DATABASE_FILES} > ${#test_string} ))
149 if [ -x $POST_INSTALL_DIR/$PLATFORM_SCRIPT_DIR/$ScriptName ]
151 Log "Executing $PLATFORM specific $FilesetName customize script"
152 KORNSHELL $POST_INSTALL_DIR/$PLATFORM_SCRIPT_DIR/$ScriptName -e 2>&1 | \
154 elif [ -x $POST_INSTALL_DIR/$ScriptName ]
156 Log "Executing $FilesetName customize script"
157 KORNSHELL $POST_INSTALL_DIR/$ScriptName -e 2>&1 | tee -a $LOGFILE
166 DoFilesetScript CDE-TT configTT tt.cfg
167 DoFilesetScript CDE-MIN configMin min.cfg
168 DoFilesetScript CDE-SHLIBS configShlibs shlibs.cfg
169 DoFilesetScript CDE-RUN configRun run.cfg
175 Log "Creating packing list."
176 touch $INSTALL_LOCATION/Packing_list
177 for i in `echo $DATABASE_FILES`
180 KORNSHELL $TOOL_DIR/udbToAny.ksh -toDB -ReleaseStream $PLATFORM $DATABASE_DIR/${i}.udb > /tmp/${i}.db
181 if [ -r /tmp/${i}.db ]
183 for file in `fgrep install_target /tmp/${i}.db | cut -sf 2 -d \: `
185 echo "$file" >>$INSTALL_LOCATION/Packing_list
193 HASH kill these processes so that they can be removed and new ones
196 for i in inetd rpc.ttdbserver rpc.cmsd
198 if [ "$PLATFORM" = "aix" -a $i = "inetd" ]
200 lssrc -s inetd >/dev/null 2>&1
203 stopsrc -s inetd >>$LOGFILE 2>&1
205 elif [ "$PLATFORM" = "openbsd" ]
207 ps axo pid,comm | grep $i > /tmp/tmppsout
208 if [ -s /tmp/tmppsout ]
210 awk '{print "kill " $1}' /tmp/tmppsout | /bin/csh -f
213 elif [ "$PLATFORM" = "freebsd" ]
215 ps axo pid,comm | grep $i > /tmp/tmppsout
216 if [ -s /tmp/tmppsout ]
218 awk '{print "kill " $1}' /tmp/tmppsout | /bin/csh -f
221 elif [ "$PLATFORM" = "netbsd" ]
223 ps axo pid,comm | grep $i > /tmp/tmppsout
224 if [ -s /tmp/tmppsout ]
226 awk '{print "kill " $1}' /tmp/tmppsout | /bin/csh -f
229 elif [ "$PLATFORM" = "linux" ]
231 ps axo pid,comm | grep $i > /tmp/tmppsout
232 if [ -s /tmp/tmppsout ]
234 awk '{print "kill " $1}' /tmp/tmppsout | /bin/sh -f
238 ps -ef | grep $i | grep -v grep >/tmp/tmppsout
239 if [ -s /tmp/tmppsout ]
241 awk '{print "kill " $2}' /tmp/tmppsout | /bin/csh -f
251 HASH now restart inetd
255 if [ "$PLATFORM" = "sun" ]
257 /usr/sbin/svcadm refresh svc:/network/inetd:default
258 /usr/sbin/svcadm restart svc:/network/inetd:default
259 elif [ "$PLATFORM" = "aix" ]
261 startsrc -s inetd >>$LOGFILE 2>&1
262 elif [ "$PLATFORM" = "dec" ]
265 elif [ "$PLATFORM" = "openbsd" ]
267 /etc/rc.d/inetd start >/dev/null
268 elif [ "$PLATFORM" = "freebsd" ]
270 /etc/rc.d/inetd onestart
271 elif [ "$PLATFORM" = "netbsd" ]
273 /etc/rc.d/inetd start >/dev/null
274 elif [ "$PLATFORM" = "linux" ]
276 /etc/init.d/openbsd-inetd start >/dev/null 2>&1
287 CheckForActualLocations()
290 XCOMM if different actual locations specified, set up the links
294 if [ "$CLEAN_DAEMONS" = "yes" ]
299 HASH remove the contents of the installation directory then the directory
302 if [ "$CLEANING" = "yes" ]
304 Log "Removing $INSTALL_LOCATION contents... "
305 if [ -d $INSTALL_LOCATION ]
307 rm -rf $INSTALL_LOCATION/STAR
308 if [ "$LeaveLinks" = "yes" ]
310 if [ ! -L $INSTALL_LOCATION ]
312 rm -rf $INSTALL_LOCATION
315 if [ -L $INSTALL_LOCATION ]
317 rm -f $INSTALL_LOCATION
319 rm -rf $INSTALL_LOCATION
325 if [ "$CONFIGURE_ONLY" = "no" ]
327 if [ "$ACTUAL_INSTALLATION_LOC" != "" ]
331 HASH first create the actual directory - if not there
334 if [ ! -d $ACTUAL_INSTALLATION_LOC ]
336 mkdir -p $ACTUAL_INSTALLATION_LOC
337 if [ ! -d $ACTUAL_INSTALLATION_LOC ]
339 Log "cannot create $ACTUAL_INSTALLATION_LOC directory"
344 ln -s $ACTUAL_INSTALLATION_LOC $INSTALL_LOCATION
347 if [ ! -d $INSTALL_LOCATION -a ! -L $INSTALL_LOCATION ];
349 mkdir -p $INSTALL_LOCATION
354 if [ "$CLEAN_DAEMONS" = "yes" ]
359 HASH remove the contents of the configuration directory
361 if [ "$CLEANING_ETC" = "yes" ]
363 Log "Removing $CONFIGURE_LOCATION contents... "
364 if [ -d $CONFIGURE_LOCATION ]
366 rm -rf $CONFIGURE_LOCATION/STAR
367 if [ "$LeaveLinks" = "yes" ]
369 if [ ! -L $CONFIGURE_LOCATION ]
371 rm -rf $CONFIGURE_LOCATION
374 if [ -L $CONFIGURE_LOCATION ]
376 rm -f $CONFIGURE_LOCATION
378 rm -rf $CONFIGURE_LOCATION
384 if [ "$ACTUAL_CONFIGURATION_LOC" != "" ]
386 if [ ! -d $ACTUAL_CONFIGURATION_LOC ]
388 mkdir -p $ACTUAL_CONFIGURATION_LOC
389 if [ ! -d $ACTUAL_CONFIGURATION_LOC ]
391 Log "cannot create $ACTUAL_CONFIGURATION_LOC directory"
396 ln -s $ACTUAL_CONFIGURATION_LOC $CONFIGURE_LOCATION
399 if [ ! -d $CONFIGURE_LOCATION -a ! -L $CONFIGURE_LOCATION ];
401 mkdir -p $CONFIGURE_LOCATION
405 if [ "$CLEANING" = "yes" ]
407 Log "Removing $LOGFILES_LOCATION contents... "
408 if [ -d $LOGFILES_LOCATION ]
410 rm -rf $LOGFILES_LOCATION/STAR
411 if [ "$LeaveLinks" = "yes" ]
413 if [ ! -L $LOGFILES_LOCATION ]
415 rm -rf $LOGFILES_LOCATION
418 if [ -L $LOGFILES_LOCATION ]
420 rm -f $LOGFILES_LOCATION
422 rm -rf $LOGFILES_LOCATION
428 if [ "$ACTUAL_VAR_LOC" != "" ]
430 if [ ! -d $ACTUAL_VAR_LOC ]
432 mkdir -p $ACTUAL_VAR_LOC
433 if [ ! -d $ACTUAL_VAR_LOC ]
435 Log "cannot create $ACTUAL_VAR_LOC directory"
440 ln -s $ACTUAL_VAR_LOC $LOGFILES_LOCATION
443 if [ ! -d $LOGFILES_LOCATION -a ! -L $LOGFILES_LOCATION ];
445 mkdir -p $LOGFILES_LOCATION
454 echo -e "Usage: $(basename $0) {-s <source>|-z <package>} [options]"
456 echo -e "\t-s <source>\t\t\tthe top of the build tree"
457 echo -e "\t-z <package>\t\tthe desktop install package"
461 echo -e "\t[-t <package_destination>]\tif specified create an"
462 echo -e "\t\t\t\t\tinstall package and store it in the"
463 echo -e "\t\t\t\t\tdestination."
464 echo -e "\t[-pI <actual install location>]\twhere" CDE_INSTALLATION_TOP "will be linked to."
465 echo -e "\t[-pC <actual config location>]\twhere" CDE_CONFIGURATION_TOP "will be linked to."
466 echo -e "\t[-pV <actual var location>]\twhere" CDE_LOGFILES_TOP "will be linked to."
468 echo -e "\t[-a <udb directory>]\t\talternate place to get the"
469 echo -e "\t\t\t\t\tudb files from."
470 echo -e "\t[-f <filesets>]\t\t\tspecify filesets to be loaded."
471 echo -e "\t\t\t\t\tThe list should be double-quoted,"
472 echo -e "\t\t\t\t\tspace-separated, with no .udb"
473 echo -e "\t\t\t\t\textensions."
475 echo -e "\t[-clean]\t\t\tremove the temporary, configuration, and"
476 echo -e "\t\t\t\t\tinstallation directory"
477 echo -e "\t[-cleanTwo]\t\t\tremove the temporary and installation "
478 echo -e "\t\t\t\t\tdirectory, but NOT the configuration directory"
479 echo -e "\t[-cleanEtc]\t\t\tremove the configuration directory, but "
480 echo -e "\t\t\t\t\NOT the temporary and installation directories"
481 echo -e "\t[-prog]\t\t\t\tload only the development environment"
482 echo -e "\t[-runtime]\t\t\tload only the runtime environment"
483 echo -e "\t[-relative]\t\t\trun the relative-located config scripts"
484 echo -e "\t[-pack]\t\t\t\tcreate a packing list"
485 echo -e "\t[-pseudo]\t\t\tdo not configure desktop when installing"
486 echo -e "\t[-nocompress]\t\t\tdo not compress tarball when creating package"
487 echo -e "\t[-lang LANG]\t\t\tspecify LANG to load appropriate localized"
488 echo -e "\t\t\t\t\tfilesets"
489 echo -e "\t[-LeaveLinks]\t\t\t\tdo not delete the links after cleaning"
491 echo -e "\t[-LinkStepOnly]\t\t\tset up the -pI, -pC, and -pV links"
492 echo -e "\t\t\t\t\tthen exit"
493 echo -e "\t[-DontRunScripts]\t\tstop after installation"
494 echo -e "\t[-RunScriptsOnly]\t\tonly execute the scripts"
495 echo -e "\t[-configureOnly]\t\tonly configure the desktop"
497 echo -e "\tExamples:"
499 echo -e "\tinstallCDE -s /x/cde_hp700_90"
500 echo -e "\tinstallCDE -s /x/cde_aix_32 -f \"CDE_MIN CDE-SHLIBS\""
501 echo -e "\tinstallCDE -s /x/cde_sun_52 -pI /bigdisk/opt/dt -clean"
502 echo -e "\tinstallCDE -s /x/cde_sun_52 -pI /dtinstall -clean\\"
503 echo -e "\t\t-pseudo -t /dtpackages -nocompress"
507 XCOMM LoadFileSet() - load a UDB file
508 XCOMM $1 - fileset number
509 XCOMM $2 - fileset name
513 if [ "$1" = "" ]; then
519 XCOMM don't bother if the fileset doesn't exist
520 if [ ! -e $DATABASE_DIR/${2}.udb ]
525 Log " $num installing database $2"
526 Log " - creating ${2}.lst file"
527 KORNSHELL $TOOL_DIR/udbToAny.ksh -toLst -ReleaseStream $PLATFORM \
528 $DATABASE_DIR/${2}.udb > /tmp/${2}.lst
529 Log " - installing ... "
530 KORNSHELL $TOOL_DIR/mkProd -D / -S $BUILD_TREE /tmp/${2}.lst \
531 2>/tmp/${2}.err 1>/tmp/${2}.good
534 Log " - checking for errors ..."
535 rm -f /tmp/${2}.missing
536 awk '{if ($1 == "ERROR:") print " " $4}' \
537 /tmp/${2}.err >> /tmp/${2}.missing
538 if [ -s /tmp/${2}.missing ]
540 Log " - missing files:"
541 cat /tmp/${2}.missing | tee -a $LOGFILE
545 ORIGINAL_COMMAND_LINE="$*"
547 XCOMM Set which system we are on
551 PLATFORM_SCRIPT_DIR=""
556 if [ $BUILDSYSTEM = "AIX" ];
559 PLATFORM_SCRIPT_DIR=ibm
560 elif [ $BUILDSYSTEM = "SunOS" ];
563 PLATFORM_SCRIPT_DIR=sun
564 elif [ $BUILDSYSTEM = "Linux" ];
567 PLATFORM_SCRIPT_DIR="linux"
568 elif [ $BUILDSYSTEM = "FreeBSD" ];
571 PLATFORM_SCRIPT_DIR="freebsd"
572 elif [ $BUILDSYSTEM = "OpenBSD" ];
575 PLATFORM_SCRIPT_DIR="openbsd"
576 elif [ $BUILDSYSTEM = "NetBSD" ];
579 PLATFORM_SCRIPT_DIR="netbsd"
580 else # Build system = HP
582 PLATFORM_SCRIPT_DIR=hp
585 if [ "$PLATFORM" = "aix" ];
589 USER=`/usr/bin/whoami`
592 if [ "$USER" != "root" ];
595 echo "You should be root to run this script. Continuing anyway."
604 COMPRESS_TARBALL="yes"
605 USE_ALTERNATE_UDB_DIR="no"
610 ACTUAL_INSTALLATION_LOC=""
611 ACTUAL_CONFIGURATION_LOC=""
613 CREATE_PACKING_LIST="no"
614 DO_LINK_STEP_ONLY="no"
617 RUN_SCRIPTS_ONLY="no"
629 Log "Options specified..."
630 while [ $# -ne 0 ]; do
632 -s) Log " - get the build tree to extract from"
641 -z) Log " - get the install package to extract from"
650 -t) Log " - where to put the install package"
656 if [ "$SOURCE_TAR_FILE" = "" ]
663 -a) Log " - alternate place to get the udb files from"
670 USE_ALTERNATE_UDB_DIR="yes"
673 -f) Log " - load specific filesets"
682 -p) Log " - get all locations"
688 ACTUAL_INSTALLATION_LOC=$1
689 ACTUAL_CONFIGURATION_LOC=$1
693 -pI) Log " - get actual installation location"
699 ACTUAL_INSTALLATION_LOC=$1
702 -pC) Log " - get actual configuration location"
708 ACTUAL_CONFIGURATION_LOC=$1
711 -pV) Log " - get actual var location"
720 -clean) Log " - delete all three cde directories"
725 -cleanTwo) Log " - delete only temporary and installation directories"
729 -cleanEtc) Log " - delete only the configuration directory"
733 -prog) Log " - load only the development environment"
738 -runtime) Log " - load only the runtime environment"
743 -relative) Log " - run the relative-located config scripts"
747 -pack) Log " - create a packing list"
748 CREATE_PACKING_LIST="yes"
751 -LeaveLinks) Log " - do not remove the links"
755 -LinkStepOnly) Log " - do link step only"
756 DO_LINK_STEP_ONLY="yes"
759 -DontRunScripts) Log " - stop after installation"
760 DO_INSTALL_ONLY="yes"
763 -RunScriptsOnly) Log " - only run scripts"
764 RUN_SCRIPTS_ONLY="yes"
767 -pseudo) Log " - pseudo install"
773 -nocompress) Log " - do not compress tarball"
774 COMPRESS_TARBALL="no"
777 -lang) Log " - load localized filesets"
786 -configureOnly) Log " - Configure only"
791 *) Log " - unknown option"
800 if [ -z "$BUILD_TREE" -a -z "$TAR_TREE" ]
806 if [ "$BUILD_TREE" != "" -a ! -d "$BUILD_TREE" ]
808 Log "Build tree does not exist."
812 if [ "$TAR_TREE" != "" -a ! -d "$TAR_TREE" ]
814 Log "Tar tree does not exist."
824 XCOMM get the current time stamp if going to create a tarball
827 if [ $TARBALL = "yes" ];
833 if [ -z "$BUILD_TREE" -a ${0##STAR/} = INSTALL.CDE ]; then
834 typeset -u CDEPACKAGE
835 typeset -u CDETARFILE
836 typeset -u CDETARFILEZ
837 typeset -u CDECONFIGDIR
840 TOOL_DIR=$BUILD_TREE/admin/IntegTools/dbTools
841 if [ "$USE_RELATIVE" = "yes" ]
843 POST_INSTALL_DIR=../post_install
845 if [ -z "$BUILD_TREE" ]
847 POST_INSTALL_DIR=$TAR_TREE/$CDECONFIGDIR
849 POST_INSTALL_DIR=$BUILD_TREE/admin/IntegTools/post_install
853 if [ "$USE_ALTERNATE_UDB_DIR" = "yes" ]
855 DATABASE_DIR=$ALTERNATE_UDB_DIR/databases
857 DATABASE_DIR=$BUILD_TREE/databases
860 if [ "$DATABASE_FILES" = "" ]
862 if [ "$DEVELOP_ENV" = "yes" ]
864 DATABASE_FILES="CDE-HELP-PRG CDE-PRG CDE-INC CDE-DEMOS \
865 CDE-MAN-DEV CDE-SHLIBS"
866 elif [ "$RUNTIME_ENV" = "yes" ]
868 DATABASE_FILES="CDE-RUN CDE-MIN CDE-TT CDE-MAN CDE-HELP-RUN CDE-C \
869 CDE-HELP-C CDE-MSG-C CDE-SHLIBS CDE-ICONS CDE-FONTS \
870 CDE-INFO CDE-INFOLIB-C"
872 DATABASE_FILES="CDE-RUN CDE-MIN CDE-TT CDE-MAN CDE-HELP-RUN CDE-C \
873 CDE-MSG-C CDE-HELP-C CDE-SHLIBS CDE-HELP-PRG \
874 CDE-PRG CDE-INC CDE-DEMOS CDE-MAN-DEV CDE-ICONS \
875 CDE-FONTS CDE-INFO CDE-INFOLIB-C"
878 HASH now load any localized filesets
879 if [ "$DEVELOP_ENV" != "yes" ]
881 if [ "$theLang" != "" ]
883 DATABASE_FILES="$DATABASE_FILES CDE-$theLang CDE-MSG-$theLang \
886 HASH load all current (working) languages
887 DATABASE_FILES="$DATABASE_FILES \
904 [ -z "$INSTALL_LOCATION" ] && INSTALL_LOCATION=CDE_INSTALLATION_TOP
905 [ -z "$CONFIGURE_LOCATION" ] && CONFIGURE_LOCATION=CDE_CONFIGURATION_TOP
906 [ -z "$LOGFILES_LOCATION" ] && LOGFILES_LOCATION=CDE_LOGFILES_TOP
908 if [ -L $INSTALL_LOCATION -a "$CONFIGURE_ONLY" != "yes" ]
910 touch $INSTALL_LOCATION/foo >/dev/null 2>/dev/null
911 if [ ! -f $INSTALL_LOCATION/foo ]
913 Log "Insufficient permissions to install CDE files in $INSTALL_LOCATION"
916 if [ ! -O $INSTALL_LOCATION/foo ]
918 Log "Root access to $INSTALL_LOCATION is required for CDE installation."
921 rm $INSTALL_LOCATION/foo
924 if [ -d $INSTALL_LOCATION ]
926 if [ -x $INSTALL_LOCATION/bin -a ! -d $INSTALL_LOCATION/bin ]
928 rm -f $INSTALL_LOCATION/bin
932 if [ "$CONFIGURE_ONLY" = "yes" ]
934 CheckForActualLocations
936 Log "Configuration completed."
940 if [ "$RUN_SCRIPTS_ONLY" = "yes" ]
946 CheckForActualLocations
948 if [ "$DO_LINK_STEP_ONLY" = "yes" ]
953 if [ "$CREATE_PACKING_LIST" = "yes" ]
960 XCOMM we are ready to load the environment ...
963 if [ "$BUILD_TREE" != "" ]
965 Log "Load the Desktop from $BUILD_TREE"
969 for i in `echo $DATABASE_FILES`
971 LoadFileSet "$j" "$i"
975 Log "Load the Desktop from $TAR_TREE"
976 compressed=$(awk '/COMPRESSED: /{print $2}' $TAR_TREE/$CDEPACKAGE)
977 if [ "$compressed" = "yes" ]; then
978 uncompress <$TAR_TREE/$CDETARFILEZ | tar xvf - $INSTALL_LOCATION
980 tar -xvf $TAR_TREE/$CDETARFILE $INSTALL_LOCATION
982 DATABASE_FILES=$(awk 'BEGIN {FS=":"} /FILESETS: /{print $2}' $TAR_TREE/$CDEPACKAGE)
986 Log "Desktop installed in $INSTALL_LOCATION"
988 if [ "$DO_INSTALL_ONLY" = "yes" ]
993 if [ $TARBALL = "yes" ];
1000 if [ "$RUN_SCRIPTS" = "yes" ]
1005 if [ "$REMOVE_LINKS" = "yes" ]
1007 [ -L /usr/dt ] && rm /usr/dt
1008 [ -L /etc/dt ] && rm /etc/dt
1009 [ -L /var/dt ] && rm /var/dt
1014 echo "See $LOGFILE for a log of this install session."