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..."
65 if [ $PLATFORM = "usl" -o "$PLATFORM" = "uxp" ]
71 mkdir -p $TARBALL_LOCATION/$DIRNAME
73 echo $DATE >$LOGFILES_LOCATION/.build.$DATE
74 chown bin $LOGFILES_LOCATION/.build.$DATE
76 if [ "$COMPRESS_TARBALL" = "yes" ]; then
77 tar -cf - $INSTALL_LOCATION/STAR \
78 2>$TARBALL_LOCATION/$DIRNAME/extract.err |
79 compress -c >$TARBALL_LOCATION/$DIRNAME/dttar.Z
81 tar -cf $TARBALL_LOCATION/$DIRNAME/dt.tar \
82 $INSTALL_LOCATION/STAR \
83 2>$TARBALL_LOCATION/$DIRNAME/extract.err 2>&1
86 if [ "$ACTUAL_INSTALLATION_LOC" = "" ]; then
87 actualInstallDir=$INSTALL_LOCATION
89 actualInstallDir=$ACTUAL_INSTALLATION_LOC
91 let size=$(du -s $actualInstallDir | awk '{print $1}')*512
93 HASH load installation fileset *after* tarball generated
94 LoadFileSet "" "CDE-INSTALL"
96 HASH create config dir
97 destPost=$TARBALL_LOCATION/$DIRNAME/config
100 HASH copy config and platform config scripts
101 src=$INSTALL_LOCATION/install/$PLATFORM_SCRIPT_DIR
102 cp $src/config/STAR.cfg $destPost
104 HASH copy this script and install.dt platform overrides
105 cp $src/install.dto $TARBALL_LOCATION/$DIRNAME/install.dto
106 cp $src/install.cde $TARBALL_LOCATION/$DIRNAME/install.cde
107 chmod 755 $TARBALL_LOCATION/$DIRNAME/install.cde
113 cat >$TARBALL_LOCATION/$DIRNAME/dt.pkg <<FIN
117 COMPRESSED: $COMPRESS_TARBALL
119 CL: $ORIGINAL_COMMAND_LINE
120 FILESETS: $DATABASE_FILES
123 cat >$TARBALL_LOCATION/$DIRNAME/build.status <<FIN
127 OVERALL STATUS: <not yet tested>
128 OVERALL PERFORMANCE: <not yet tested>
129 MAJOR PROBLEMS: <not yet tested>
133 chmod g+w $TARBALL_LOCATION/$DIRNAME/build.status
141 if [ "$BUILD_TREE" = "" ]; then
142 ScriptName=$3 # use short config file name (foo.cfg)
144 ScriptName=$2 # use long config file name (configFoo)
147 if [ $CDECONFIGDIR = "CONFIG" ]; then
148 typeset -u ScriptName
151 test_string=${DATABASE_FILES#*$FilesetName}
152 if (( ${#DATABASE_FILES} > ${#test_string} ))
154 if [ -x $POST_INSTALL_DIR/$PLATFORM_SCRIPT_DIR/$ScriptName ]
156 Log "Executing $PLATFORM specific $FilesetName customize script"
157 KORNSHELL $POST_INSTALL_DIR/$PLATFORM_SCRIPT_DIR/$ScriptName -e 2>&1 | \
159 elif [ -x $POST_INSTALL_DIR/$ScriptName ]
161 Log "Executing $FilesetName customize script"
162 KORNSHELL $POST_INSTALL_DIR/$ScriptName -e 2>&1 | tee -a $LOGFILE
171 DoFilesetScript CDE-TT configTT tt.cfg
172 DoFilesetScript CDE-MIN configMin min.cfg
173 DoFilesetScript CDE-SHLIBS configShlibs shlibs.cfg
174 DoFilesetScript CDE-RUN configRun run.cfg
180 Log "Creating packing list."
181 touch $INSTALL_LOCATION/Packing_list
182 for i in `echo $DATABASE_FILES`
185 KORNSHELL $TOOL_DIR/udbToAny.ksh -toDB -ReleaseStream $PLATFORM $DATABASE_DIR/${i}.udb > /tmp/${i}.db
186 if [ -r /tmp/${i}.db ]
188 for file in `fgrep install_target /tmp/${i}.db | cut -sf 2 -d \: `
190 echo "$file" >>$INSTALL_LOCATION/Packing_list
198 HASH kill these processes so that they can be removed and new ones
201 for i in inetd rpc.ttdbserver rpc.cmsd
203 if [ "$PLATFORM" = "aix" -a $i = "inetd" ]
205 lssrc -s inetd >/dev/null 2>&1
208 stopsrc -s inetd >>$LOGFILE 2>&1
210 elif [ "$PLATFORM" = openbsd ]
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
222 ps -ef | grep $i | grep -v grep >/tmp/tmppsout
223 if [ -s /tmp/tmppsout ]
225 awk '{print "kill " $2}' /tmp/tmppsout | /bin/csh -f
235 HASH now restart inetd
239 if [ "$PLATFORM" = "sun" -o "$PLATFORM" = "usl" -o "$PLATFORM" = "uxp" ]
242 elif [ "$PLATFORM" = "aix" ]
244 startsrc -s inetd >>$LOGFILE 2>&1
245 elif [ "$PLATFORM" = "dec" ]
248 elif [ "$PLATFORM" = "openbsd" ]
251 elif [ "$PLATFORM" = "freebsd" ]
253 /etc/rc.d/inetd onestart
264 CheckForActualLocations()
267 XCOMM if different actual locations specified, set up the links
271 if [ "$CLEAN_DAEMONS" = "yes" ]
276 HASH remove the contents of the installation directory then the directory
279 if [ "$CLEANING" = "yes" ]
281 Log "Removing $INSTALL_LOCATION contents... "
282 if [ -d $INSTALL_LOCATION ]
284 rm -rf $INSTALL_LOCATION/STAR
285 if [ "$LeaveLinks" = "yes" ]
287 if [ ! -L $INSTALL_LOCATION ]
289 rm -rf $INSTALL_LOCATION
292 if [ -L $INSTALL_LOCATION ]
294 rm -f $INSTALL_LOCATION
296 rm -rf $INSTALL_LOCATION
302 if [ "$CONFIGURE_ONLY" = "no" ]
304 if [ "$ACTUAL_INSTALLATION_LOC" != "" ]
308 HASH first create the actual directory - if not there
311 if [ ! -d $ACTUAL_INSTALLATION_LOC ]
313 mkdir -p $ACTUAL_INSTALLATION_LOC
314 if [ ! -d $ACTUAL_INSTALLATION_LOC ]
316 Log "cannot create $ACTUAL_INSTALLATION_LOC directory"
321 ln -s $ACTUAL_INSTALLATION_LOC $INSTALL_LOCATION
324 if [ ! -d $INSTALL_LOCATION -a ! -L $INSTALL_LOCATION ];
326 mkdir -p $INSTALL_LOCATION
331 if [ "$CLEAN_DAEMONS" = "yes" ]
336 HASH remove the contents of the configuration directory
338 if [ "$CLEANING_ETC" = "yes" ]
340 Log "Removing $CONFIGURE_LOCATION contents... "
341 if [ -d $CONFIGURE_LOCATION ]
343 rm -rf $CONFIGURE_LOCATION/STAR
344 if [ "$LeaveLinks" = "yes" ]
346 if [ ! -L $CONFIGURE_LOCATION ]
348 rm -rf $CONFIGURE_LOCATION
351 if [ -L $CONFIGURE_LOCATION ]
353 rm -f $CONFIGURE_LOCATION
355 rm -rf $CONFIGURE_LOCATION
361 if [ "$ACTUAL_CONFIGURATION_LOC" != "" ]
363 if [ ! -d $ACTUAL_CONFIGURATION_LOC ]
365 mkdir -p $ACTUAL_CONFIGURATION_LOC
366 if [ ! -d $ACTUAL_CONFIGURATION_LOC ]
368 Log "cannot create $ACTUAL_CONFIGURATION_LOC directory"
373 ln -s $ACTUAL_CONFIGURATION_LOC $CONFIGURE_LOCATION
376 if [ ! -d $CONFIGURE_LOCATION -a ! -L $CONFIGURE_LOCATION ];
378 mkdir -p $CONFIGURE_LOCATION
382 if [ "$CLEANING" = "yes" ]
384 Log "Removing $LOGFILES_LOCATION contents... "
385 if [ -d $LOGFILES_LOCATION ]
387 rm -rf $LOGFILES_LOCATION/STAR
388 if [ "$LeaveLinks" = "yes" ]
390 if [ ! -L $LOGFILES_LOCATION ]
392 rm -rf $LOGFILES_LOCATION
395 if [ -L $LOGFILES_LOCATION ]
397 rm -f $LOGFILES_LOCATION
399 rm -rf $LOGFILES_LOCATION
405 if [ "$ACTUAL_VAR_LOC" != "" ]
407 if [ ! -d $ACTUAL_VAR_LOC ]
409 mkdir -p $ACTUAL_VAR_LOC
410 if [ ! -d $ACTUAL_VAR_LOC ]
412 Log "cannot create $ACTUAL_VAR_LOC directory"
417 ln -s $ACTUAL_VAR_LOC $LOGFILES_LOCATION
420 if [ ! -d $LOGFILES_LOCATION -a ! -L $LOGFILES_LOCATION ];
422 mkdir -p $LOGFILES_LOCATION
431 echo -e "Usage: $(basename $0) {-s <source>|-z <package>} [options]"
433 echo -e "\t-s <source>\t\t\tthe top of the build tree"
434 echo -e "\t-z <package>\t\tthe desktop install package"
438 echo -e "\t[-t <package_destination>]\tif specified create an"
439 echo -e "\t\t\t\t\tinstall package and store it in the"
440 echo -e "\t\t\t\t\tdestination."
441 echo -e "\t[-pI <actual install location>]\twhere" CDE_INSTALLATION_TOP "will be linked to."
442 echo -e "\t[-pC <actual config location>]\twhere" CDE_CONFIGURATION_TOP "will be linked to."
443 echo -e "\t[-pV <actual var location>]\twhere" CDE_LOGFILES_TOP "will be linked to."
445 echo -e "\t[-a <udb directory>]\t\talternate place to get the"
446 echo -e "\t\t\t\t\tudb files from."
447 echo -e "\t[-f <filesets>]\t\t\tspecify filesets to be loaded."
448 echo -e "\t\t\t\t\tThe list should be double-quoted,"
449 echo -e "\t\t\t\t\tspace-separated, with no .udb"
450 echo -e "\t\t\t\t\textensions."
452 echo -e "\t[-clean]\t\t\tremove the temporary, configuration, and"
453 echo -e "\t\t\t\t\tinstallation directory"
454 echo -e "\t[-cleanTwo]\t\t\tremove the temporary and installation "
455 echo -e "\t\t\t\t\tdirectory, but NOT the configuration directory"
456 echo -e "\t[-cleanEtc]\t\t\tremove the configuration directory, but "
457 echo -e "\t\t\t\t\NOT the temporary and installation directories"
458 echo -e "\t[-prog]\t\t\t\tload only the development environment"
459 echo -e "\t[-runtime]\t\t\tload only the runtime environment"
460 echo -e "\t[-relative]\t\t\trun the relative-located config scripts"
461 echo -e "\t[-pack]\t\t\t\tcreate a packing list"
462 echo -e "\t[-pseudo]\t\t\tdo not configure desktop when installing"
463 echo -e "\t[-nocompress]\t\t\tdo not compress tarball when creating package"
464 echo -e "\t[-lang LANG]\t\t\tspecify LANG to load appropriate localized"
465 echo -e "\t\t\t\t\tfilesets"
466 echo -e "\t[-LeaveLinks]\t\t\t\tdo not delete the links after cleaning"
468 echo -e "\t[-LinkStepOnly]\t\t\tset up the -pI, -pC, and -pV links"
469 echo -e "\t\t\t\t\tthen exit"
470 echo -e "\t[-DontRunScripts]\t\tstop after installation"
471 echo -e "\t[-RunScriptsOnly]\t\tonly execute the scripts"
472 echo -e "\t[-configureOnly]\t\tonly configure the desktop"
474 echo -e "\tExamples:"
476 echo -e "\tinstallCDE -s /x/cde_hp700_90"
477 echo -e "\tinstallCDE -s /x/cde_aix_32 -f \"CDE_MIN CDE-SHLIBS\""
478 echo -e "\tinstallCDE -s /x/cde_sun_52 -pI /bigdisk/opt/dt -clean"
479 echo -e "\tinstallCDE -s /x/cde_sun_52 -pI /dtinstall -clean\\"
480 echo -e "\t\t-pseudo -t /dtpackages -nocompress"
484 XCOMM LoadFileSet() - load a UDB file
485 XCOMM $1 - fileset number
486 XCOMM $2 - fileset name
490 if [ "$1" = "" ]; then
496 XCOMM don't bother if the fileset doesn't exist
497 if [ ! -e $DATABASE_DIR/${2}.udb ]
502 Log " $num installing database $2"
503 Log " - creating ${2}.lst file"
504 KORNSHELL $TOOL_DIR/udbToAny.ksh -toLst -ReleaseStream $PLATFORM \
505 $DATABASE_DIR/${2}.udb > /tmp/${2}.lst
506 Log " - installing ... "
507 KORNSHELL $TOOL_DIR/mkProd -D / -S $BUILD_TREE /tmp/${2}.lst \
508 2>/tmp/${2}.err 1>/tmp/${2}.good
511 Log " - checking for errors ..."
512 rm -f /tmp/${2}.missing
513 awk '{if ($1 == "ERROR:") print " " $4}' \
514 /tmp/${2}.err >> /tmp/${2}.missing
515 if [ -s /tmp/${2}.missing ]
517 Log " - missing files:"
518 cat /tmp/${2}.missing | tee -a $LOGFILE
522 ORIGINAL_COMMAND_LINE="$*"
524 XCOMM Set which system we are on
528 PLATFORM_SCRIPT_DIR=""
533 if [ $BUILDSYSTEM = "AIX" ];
536 PLATFORM_SCRIPT_DIR=ibm
537 elif [ $BUILDSYSTEM = "SunOS" ];
540 PLATFORM_SCRIPT_DIR=sun
541 elif [ $BUILDSYSTEM = "UNIX_SV" ];
544 PLATFORM_SCRIPT_DIR=usl
545 elif [ $BUILDSYSTEM = "UNIX_System_V" ];
548 PLATFORM_SCRIPT_DIR=uxp
549 elif [ $BUILDSYSTEM = "OSF1" ];
552 PLATFORM_SCRIPT_DIR=dec
553 elif [ $BUILDSYSTEM = "Linux" ];
556 PLATFORM_SCRIPT_DIR=""
557 elif [ $BUILDSYSTEM = "FreeBSD" ];
560 PLATFORM_SCRIPT_DIR="freebsd"
561 elif [ $BUILDSYSTEM = "OpenBSD" ];
564 PLATFORM_SCRIPT_DIR=""
565 else # Build system = HP
567 PLATFORM_SCRIPT_DIR=hp
570 if [ "$PLATFORM" = "aix" ];
573 elif [ "$PLATFORM" = "sun" -o "$PLATFORM" = "usl" -o "$PLATFORM" = "uxp" ];
575 USER=`/usr/ucb/whoami`
577 USER=`/usr/bin/whoami`
580 if [ "$USER" != "root" ];
583 echo "You should be root to run this script. Continuing anyway."
587 if [ "$PLATFORM" = "usl" -o "$PLATFORM" = "uxp" ]
597 COMPRESS_TARBALL="yes"
598 USE_ALTERNATE_UDB_DIR="no"
603 ACTUAL_INSTALLATION_LOC=""
604 ACTUAL_CONFIGURATION_LOC=""
606 CREATE_PACKING_LIST="no"
607 DO_LINK_STEP_ONLY="no"
610 RUN_SCRIPTS_ONLY="no"
622 Log "Options specified..."
623 while [ $# -ne 0 ]; do
625 -s) Log " - get the build tree to extract from"
634 -z) Log " - get the install package to extract from"
643 -t) Log " - where to put the install package"
649 if [ "$SOURCE_TAR_FILE" = "" ]
656 -a) Log " - alternate place to get the udb files from"
663 USE_ALTERNATE_UDB_DIR="yes"
666 -f) Log " - load specific filesets"
675 -p) Log " - get all locations"
681 ACTUAL_INSTALLATION_LOC=$1
682 ACTUAL_CONFIGURATION_LOC=$1
686 -pI) Log " - get actual installation location"
692 ACTUAL_INSTALLATION_LOC=$1
695 -pC) Log " - get actual configuration location"
701 ACTUAL_CONFIGURATION_LOC=$1
704 -pV) Log " - get actual var location"
713 -clean) Log " - delete all three cde directories"
718 -cleanTwo) Log " - delete only temporary and installation directories"
722 -cleanEtc) Log " - delete only the configuration directory"
726 -prog) Log " - load only the development environment"
731 -runtime) Log " - load only the runtime environment"
736 -relative) Log " - run the relative-located config scripts"
740 -pack) Log " - create a packing list"
741 CREATE_PACKING_LIST="yes"
744 -LeaveLinks) Log " - do not remove the links"
748 -LinkStepOnly) Log " - do link step only"
749 DO_LINK_STEP_ONLY="yes"
752 -DontRunScripts) Log " - stop after installation"
753 DO_INSTALL_ONLY="yes"
756 -RunScriptsOnly) Log " - only run scripts"
757 RUN_SCRIPTS_ONLY="yes"
760 -pseudo) Log " - pseudo install"
766 -nocompress) Log " - do not compress tarball"
767 COMPRESS_TARBALL="no"
770 -lang) Log " - load localized filesets"
779 -configureOnly) Log " - Configure only"
784 *) Log " - unknown option"
793 if [ -z "$BUILD_TREE" -a -z "$TAR_TREE" ]
799 if [ "$BUILD_TREE" != "" -a ! -d "$BUILD_TREE" ]
801 Log "Build tree does not exist."
805 if [ "$TAR_TREE" != "" -a ! -d "$TAR_TREE" ]
807 Log "Tar tree does not exist."
817 XCOMM get the current time stamp if going to create a tarball
820 if [ $TARBALL = "yes" ];
826 if [ -z "$BUILD_TREE" -a ${0##STAR/} = INSTALL.CDE ]; then
827 typeset -u CDEPACKAGE
828 typeset -u CDETARFILE
829 typeset -u CDETARFILEZ
830 typeset -u CDECONFIGDIR
833 TOOL_DIR=$BUILD_TREE/admin/IntegTools/dbTools
834 if [ "$USE_RELATIVE" = "yes" ]
836 POST_INSTALL_DIR=../post_install
838 if [ -z "$BUILD_TREE" ]
840 POST_INSTALL_DIR=$TAR_TREE/$CDECONFIGDIR
842 POST_INSTALL_DIR=$BUILD_TREE/admin/IntegTools/post_install
846 if [ "$USE_ALTERNATE_UDB_DIR" = "yes" ]
848 DATABASE_DIR=$ALTERNATE_UDB_DIR/databases
850 DATABASE_DIR=$BUILD_TREE/databases
853 if [ "$DATABASE_FILES" = "" ]
855 if [ "$DEVELOP_ENV" = "yes" ]
857 DATABASE_FILES="CDE-HELP-PRG CDE-PRG CDE-INC CDE-DEMOS \
858 CDE-MAN-DEV CDE-SHLIBS"
859 elif [ "$RUNTIME_ENV" = "yes" ]
861 DATABASE_FILES="CDE-RUN CDE-MIN CDE-TT CDE-MAN CDE-HELP-RUN CDE-C \
862 CDE-HELP-C CDE-MSG-C CDE-SHLIBS CDE-ICONS CDE-FONTS \
863 CDE-INFO CDE-INFOLIB-C"
865 DATABASE_FILES="CDE-RUN CDE-MIN CDE-TT CDE-MAN CDE-HELP-RUN CDE-C \
866 CDE-MSG-C CDE-HELP-C CDE-SHLIBS CDE-HELP-PRG \
867 CDE-PRG CDE-INC CDE-DEMOS CDE-MAN-DEV CDE-ICONS \
868 CDE-FONTS CDE-INFO CDE-INFOLIB-C"
871 HASH now load any localized filesets
872 if [ "$DEVELOP_ENV" != "yes" ]
874 if [ "$theLang" != "" ]
876 DATABASE_FILES="$DATABASE_FILES CDE-$theLang CDE-MSG-$theLang \
879 HASH load all current (working) languages
880 DATABASE_FILES="$DATABASE_FILES \
897 [ -z "$INSTALL_LOCATION" ] && INSTALL_LOCATION=CDE_INSTALLATION_TOP
898 [ -z "$CONFIGURE_LOCATION" ] && CONFIGURE_LOCATION=CDE_CONFIGURATION_TOP
899 [ -z "$LOGFILES_LOCATION" ] && LOGFILES_LOCATION=CDE_LOGFILES_TOP
901 if [ -L $INSTALL_LOCATION -a "$CONFIGURE_ONLY" != "yes" ]
903 touch $INSTALL_LOCATION/foo >/dev/null 2>/dev/null
904 if [ ! -f $INSTALL_LOCATION/foo ]
906 Log "Insufficient permissions to install CDE files in $INSTALL_LOCATION"
909 if [ ! -O $INSTALL_LOCATION/foo ]
911 Log "Root access to $INSTALL_LOCATION is required for CDE installation."
914 rm $INSTALL_LOCATION/foo
917 if [ -d $INSTALL_LOCATION ]
919 if [ -x $INSTALL_LOCATION/bin -a ! -d $INSTALL_LOCATION/bin ]
921 rm -f $INSTALL_LOCATION/bin
925 if [ "$CONFIGURE_ONLY" = "yes" ]
927 CheckForActualLocations
929 Log "Configuration completed."
933 if [ "$RUN_SCRIPTS_ONLY" = "yes" ]
939 CheckForActualLocations
941 if [ "$DO_LINK_STEP_ONLY" = "yes" ]
946 if [ "$CREATE_PACKING_LIST" = "yes" ]
953 XCOMM we are ready to load the environment ...
956 if [ "$BUILD_TREE" != "" ]
958 Log "Load the Desktop from $BUILD_TREE"
962 for i in `echo $DATABASE_FILES`
964 LoadFileSet "$j" "$i"
968 Log "Load the Desktop from $TAR_TREE"
969 compressed=$(awk '/COMPRESSED: /{print $2}' $TAR_TREE/$CDEPACKAGE)
970 if [ "$compressed" = "yes" ]; then
971 uncompress <$TAR_TREE/$CDETARFILEZ | tar xvf - $INSTALL_LOCATION
973 tar -xvf $TAR_TREE/$CDETARFILE $INSTALL_LOCATION
975 DATABASE_FILES=$(awk 'BEGIN {FS=":"} /FILESETS: /{print $2}' $TAR_TREE/$CDEPACKAGE)
979 Log "Desktop installed in $INSTALL_LOCATION"
981 if [ "$DO_INSTALL_ONLY" = "yes" ]
986 if [ $TARBALL = "yes" ];
993 if [ "$RUN_SCRIPTS" = "yes" ]
998 if [ "$REMOVE_LINKS" = "yes" ]
1000 [ -L /usr/dt ] && rm /usr/dt
1001 [ -L /etc/dt ] && rm /etc/dt
1002 [ -L /var/dt ] && rm /var/dt
1007 echo "See $LOGFILE for a log of this install session."