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" ]
212 ps axo pid,comm | grep $i > /tmp/tmppsout
213 if [ -s /tmp/tmppsout ]
215 awk '{print "kill " $1}' /tmp/tmppsout | /bin/csh -f
218 elif [ "$PLATFORM" = "freebsd" ]
220 ps axo pid,comm | grep $i > /tmp/tmppsout
221 if [ -s /tmp/tmppsout ]
223 awk '{print "kill " $1}' /tmp/tmppsout | /bin/csh -f
226 elif [ "$PLATFORM" = "netbsd" ]
228 ps axo pid,comm | grep $i > /tmp/tmppsout
229 if [ -s /tmp/tmppsout ]
231 awk '{print "kill " $1}' /tmp/tmppsout | /bin/csh -f
234 elif [ "$PLATFORM" = "linux" ]
236 ps axo pid,comm | grep $i > /tmp/tmppsout
237 if [ -s /tmp/tmppsout ]
239 awk '{print "kill " $1}' /tmp/tmppsout | /bin/sh -f
243 ps -ef | grep $i | grep -v grep >/tmp/tmppsout
244 if [ -s /tmp/tmppsout ]
246 awk '{print "kill " $2}' /tmp/tmppsout | /bin/csh -f
256 HASH now restart inetd
260 if [ "$PLATFORM" = "usl" -o "$PLATFORM" = "uxp" ]
263 elif [ "$PLATFORM" = "sun" ]
265 /usr/sbin/svcadm refresh svc:/network/inetd:default
266 /usr/sbin/svcadm restart svc:/network/inetd:default
267 elif [ "$PLATFORM" = "aix" ]
269 startsrc -s inetd >>$LOGFILE 2>&1
270 elif [ "$PLATFORM" = "dec" ]
273 elif [ "$PLATFORM" = "openbsd" ]
275 /etc/rc.d/inetd start >/dev/null
276 elif [ "$PLATFORM" = "freebsd" ]
278 /etc/rc.d/inetd onestart
279 elif [ "$PLATFORM" = "netbsd" ]
281 /etc/rc.d/inetd start >/dev/null
282 elif [ "$PLATFORM" = "linux" ]
284 /etc/init.d/openbsd-inetd start >/dev/null 2>&1
295 CheckForActualLocations()
298 XCOMM if different actual locations specified, set up the links
302 if [ "$CLEAN_DAEMONS" = "yes" ]
307 HASH remove the contents of the installation directory then the directory
310 if [ "$CLEANING" = "yes" ]
312 Log "Removing $INSTALL_LOCATION contents... "
313 if [ -d $INSTALL_LOCATION ]
315 rm -rf $INSTALL_LOCATION/STAR
316 if [ "$LeaveLinks" = "yes" ]
318 if [ ! -L $INSTALL_LOCATION ]
320 rm -rf $INSTALL_LOCATION
323 if [ -L $INSTALL_LOCATION ]
325 rm -f $INSTALL_LOCATION
327 rm -rf $INSTALL_LOCATION
333 if [ "$CONFIGURE_ONLY" = "no" ]
335 if [ "$ACTUAL_INSTALLATION_LOC" != "" ]
339 HASH first create the actual directory - if not there
342 if [ ! -d $ACTUAL_INSTALLATION_LOC ]
344 mkdir -p $ACTUAL_INSTALLATION_LOC
345 if [ ! -d $ACTUAL_INSTALLATION_LOC ]
347 Log "cannot create $ACTUAL_INSTALLATION_LOC directory"
352 ln -s $ACTUAL_INSTALLATION_LOC $INSTALL_LOCATION
355 if [ ! -d $INSTALL_LOCATION -a ! -L $INSTALL_LOCATION ];
357 mkdir -p $INSTALL_LOCATION
362 if [ "$CLEAN_DAEMONS" = "yes" ]
367 HASH remove the contents of the configuration directory
369 if [ "$CLEANING_ETC" = "yes" ]
371 Log "Removing $CONFIGURE_LOCATION contents... "
372 if [ -d $CONFIGURE_LOCATION ]
374 rm -rf $CONFIGURE_LOCATION/STAR
375 if [ "$LeaveLinks" = "yes" ]
377 if [ ! -L $CONFIGURE_LOCATION ]
379 rm -rf $CONFIGURE_LOCATION
382 if [ -L $CONFIGURE_LOCATION ]
384 rm -f $CONFIGURE_LOCATION
386 rm -rf $CONFIGURE_LOCATION
392 if [ "$ACTUAL_CONFIGURATION_LOC" != "" ]
394 if [ ! -d $ACTUAL_CONFIGURATION_LOC ]
396 mkdir -p $ACTUAL_CONFIGURATION_LOC
397 if [ ! -d $ACTUAL_CONFIGURATION_LOC ]
399 Log "cannot create $ACTUAL_CONFIGURATION_LOC directory"
404 ln -s $ACTUAL_CONFIGURATION_LOC $CONFIGURE_LOCATION
407 if [ ! -d $CONFIGURE_LOCATION -a ! -L $CONFIGURE_LOCATION ];
409 mkdir -p $CONFIGURE_LOCATION
413 if [ "$CLEANING" = "yes" ]
415 Log "Removing $LOGFILES_LOCATION contents... "
416 if [ -d $LOGFILES_LOCATION ]
418 rm -rf $LOGFILES_LOCATION/STAR
419 if [ "$LeaveLinks" = "yes" ]
421 if [ ! -L $LOGFILES_LOCATION ]
423 rm -rf $LOGFILES_LOCATION
426 if [ -L $LOGFILES_LOCATION ]
428 rm -f $LOGFILES_LOCATION
430 rm -rf $LOGFILES_LOCATION
436 if [ "$ACTUAL_VAR_LOC" != "" ]
438 if [ ! -d $ACTUAL_VAR_LOC ]
440 mkdir -p $ACTUAL_VAR_LOC
441 if [ ! -d $ACTUAL_VAR_LOC ]
443 Log "cannot create $ACTUAL_VAR_LOC directory"
448 ln -s $ACTUAL_VAR_LOC $LOGFILES_LOCATION
451 if [ ! -d $LOGFILES_LOCATION -a ! -L $LOGFILES_LOCATION ];
453 mkdir -p $LOGFILES_LOCATION
462 echo -e "Usage: $(basename $0) {-s <source>|-z <package>} [options]"
464 echo -e "\t-s <source>\t\t\tthe top of the build tree"
465 echo -e "\t-z <package>\t\tthe desktop install package"
469 echo -e "\t[-t <package_destination>]\tif specified create an"
470 echo -e "\t\t\t\t\tinstall package and store it in the"
471 echo -e "\t\t\t\t\tdestination."
472 echo -e "\t[-pI <actual install location>]\twhere" CDE_INSTALLATION_TOP "will be linked to."
473 echo -e "\t[-pC <actual config location>]\twhere" CDE_CONFIGURATION_TOP "will be linked to."
474 echo -e "\t[-pV <actual var location>]\twhere" CDE_LOGFILES_TOP "will be linked to."
476 echo -e "\t[-a <udb directory>]\t\talternate place to get the"
477 echo -e "\t\t\t\t\tudb files from."
478 echo -e "\t[-f <filesets>]\t\t\tspecify filesets to be loaded."
479 echo -e "\t\t\t\t\tThe list should be double-quoted,"
480 echo -e "\t\t\t\t\tspace-separated, with no .udb"
481 echo -e "\t\t\t\t\textensions."
483 echo -e "\t[-clean]\t\t\tremove the temporary, configuration, and"
484 echo -e "\t\t\t\t\tinstallation directory"
485 echo -e "\t[-cleanTwo]\t\t\tremove the temporary and installation "
486 echo -e "\t\t\t\t\tdirectory, but NOT the configuration directory"
487 echo -e "\t[-cleanEtc]\t\t\tremove the configuration directory, but "
488 echo -e "\t\t\t\t\NOT the temporary and installation directories"
489 echo -e "\t[-prog]\t\t\t\tload only the development environment"
490 echo -e "\t[-runtime]\t\t\tload only the runtime environment"
491 echo -e "\t[-relative]\t\t\trun the relative-located config scripts"
492 echo -e "\t[-pack]\t\t\t\tcreate a packing list"
493 echo -e "\t[-pseudo]\t\t\tdo not configure desktop when installing"
494 echo -e "\t[-nocompress]\t\t\tdo not compress tarball when creating package"
495 echo -e "\t[-lang LANG]\t\t\tspecify LANG to load appropriate localized"
496 echo -e "\t\t\t\t\tfilesets"
497 echo -e "\t[-LeaveLinks]\t\t\t\tdo not delete the links after cleaning"
499 echo -e "\t[-LinkStepOnly]\t\t\tset up the -pI, -pC, and -pV links"
500 echo -e "\t\t\t\t\tthen exit"
501 echo -e "\t[-DontRunScripts]\t\tstop after installation"
502 echo -e "\t[-RunScriptsOnly]\t\tonly execute the scripts"
503 echo -e "\t[-configureOnly]\t\tonly configure the desktop"
505 echo -e "\tExamples:"
507 echo -e "\tinstallCDE -s /x/cde_hp700_90"
508 echo -e "\tinstallCDE -s /x/cde_aix_32 -f \"CDE_MIN CDE-SHLIBS\""
509 echo -e "\tinstallCDE -s /x/cde_sun_52 -pI /bigdisk/opt/dt -clean"
510 echo -e "\tinstallCDE -s /x/cde_sun_52 -pI /dtinstall -clean\\"
511 echo -e "\t\t-pseudo -t /dtpackages -nocompress"
515 XCOMM LoadFileSet() - load a UDB file
516 XCOMM $1 - fileset number
517 XCOMM $2 - fileset name
521 if [ "$1" = "" ]; then
527 XCOMM don't bother if the fileset doesn't exist
528 if [ ! -e $DATABASE_DIR/${2}.udb ]
533 Log " $num installing database $2"
534 Log " - creating ${2}.lst file"
535 KORNSHELL $TOOL_DIR/udbToAny.ksh -toLst -ReleaseStream $PLATFORM \
536 $DATABASE_DIR/${2}.udb > /tmp/${2}.lst
537 Log " - installing ... "
538 KORNSHELL $TOOL_DIR/mkProd -D / -S $BUILD_TREE /tmp/${2}.lst \
539 2>/tmp/${2}.err 1>/tmp/${2}.good
542 Log " - checking for errors ..."
543 rm -f /tmp/${2}.missing
544 awk '{if ($1 == "ERROR:") print " " $4}' \
545 /tmp/${2}.err >> /tmp/${2}.missing
546 if [ -s /tmp/${2}.missing ]
548 Log " - missing files:"
549 cat /tmp/${2}.missing | tee -a $LOGFILE
553 ORIGINAL_COMMAND_LINE="$*"
555 XCOMM Set which system we are on
559 PLATFORM_SCRIPT_DIR=""
564 if [ $BUILDSYSTEM = "AIX" ];
567 PLATFORM_SCRIPT_DIR=ibm
568 elif [ $BUILDSYSTEM = "SunOS" ];
571 PLATFORM_SCRIPT_DIR=sun
572 elif [ $BUILDSYSTEM = "UNIX_SV" ];
575 PLATFORM_SCRIPT_DIR=usl
576 elif [ $BUILDSYSTEM = "UNIX_System_V" ];
579 PLATFORM_SCRIPT_DIR=uxp
580 elif [ $BUILDSYSTEM = "OSF1" ];
583 PLATFORM_SCRIPT_DIR=dec
584 elif [ $BUILDSYSTEM = "Linux" ];
587 PLATFORM_SCRIPT_DIR="linux"
588 elif [ $BUILDSYSTEM = "FreeBSD" ];
591 PLATFORM_SCRIPT_DIR="freebsd"
592 elif [ $BUILDSYSTEM = "OpenBSD" ];
595 PLATFORM_SCRIPT_DIR="openbsd"
596 elif [ $BUILDSYSTEM = "NetBSD" ];
599 PLATFORM_SCRIPT_DIR="netbsd"
600 else # Build system = HP
602 PLATFORM_SCRIPT_DIR=hp
605 if [ "$PLATFORM" = "aix" ];
608 elif [ "$PLATFORM" = "usl" -o "$PLATFORM" = "uxp" ];
610 USER=`/usr/ucb/whoami`
612 USER=`/usr/bin/whoami`
615 if [ "$USER" != "root" ];
618 echo "You should be root to run this script. Continuing anyway."
622 if [ "$PLATFORM" = "usl" -o "$PLATFORM" = "uxp" ]
632 COMPRESS_TARBALL="yes"
633 USE_ALTERNATE_UDB_DIR="no"
638 ACTUAL_INSTALLATION_LOC=""
639 ACTUAL_CONFIGURATION_LOC=""
641 CREATE_PACKING_LIST="no"
642 DO_LINK_STEP_ONLY="no"
645 RUN_SCRIPTS_ONLY="no"
657 Log "Options specified..."
658 while [ $# -ne 0 ]; do
660 -s) Log " - get the build tree to extract from"
669 -z) Log " - get the install package to extract from"
678 -t) Log " - where to put the install package"
684 if [ "$SOURCE_TAR_FILE" = "" ]
691 -a) Log " - alternate place to get the udb files from"
698 USE_ALTERNATE_UDB_DIR="yes"
701 -f) Log " - load specific filesets"
710 -p) Log " - get all locations"
716 ACTUAL_INSTALLATION_LOC=$1
717 ACTUAL_CONFIGURATION_LOC=$1
721 -pI) Log " - get actual installation location"
727 ACTUAL_INSTALLATION_LOC=$1
730 -pC) Log " - get actual configuration location"
736 ACTUAL_CONFIGURATION_LOC=$1
739 -pV) Log " - get actual var location"
748 -clean) Log " - delete all three cde directories"
753 -cleanTwo) Log " - delete only temporary and installation directories"
757 -cleanEtc) Log " - delete only the configuration directory"
761 -prog) Log " - load only the development environment"
766 -runtime) Log " - load only the runtime environment"
771 -relative) Log " - run the relative-located config scripts"
775 -pack) Log " - create a packing list"
776 CREATE_PACKING_LIST="yes"
779 -LeaveLinks) Log " - do not remove the links"
783 -LinkStepOnly) Log " - do link step only"
784 DO_LINK_STEP_ONLY="yes"
787 -DontRunScripts) Log " - stop after installation"
788 DO_INSTALL_ONLY="yes"
791 -RunScriptsOnly) Log " - only run scripts"
792 RUN_SCRIPTS_ONLY="yes"
795 -pseudo) Log " - pseudo install"
801 -nocompress) Log " - do not compress tarball"
802 COMPRESS_TARBALL="no"
805 -lang) Log " - load localized filesets"
814 -configureOnly) Log " - Configure only"
819 *) Log " - unknown option"
828 if [ -z "$BUILD_TREE" -a -z "$TAR_TREE" ]
834 if [ "$BUILD_TREE" != "" -a ! -d "$BUILD_TREE" ]
836 Log "Build tree does not exist."
840 if [ "$TAR_TREE" != "" -a ! -d "$TAR_TREE" ]
842 Log "Tar tree does not exist."
852 XCOMM get the current time stamp if going to create a tarball
855 if [ $TARBALL = "yes" ];
861 if [ -z "$BUILD_TREE" -a ${0##STAR/} = INSTALL.CDE ]; then
862 typeset -u CDEPACKAGE
863 typeset -u CDETARFILE
864 typeset -u CDETARFILEZ
865 typeset -u CDECONFIGDIR
868 TOOL_DIR=$BUILD_TREE/admin/IntegTools/dbTools
869 if [ "$USE_RELATIVE" = "yes" ]
871 POST_INSTALL_DIR=../post_install
873 if [ -z "$BUILD_TREE" ]
875 POST_INSTALL_DIR=$TAR_TREE/$CDECONFIGDIR
877 POST_INSTALL_DIR=$BUILD_TREE/admin/IntegTools/post_install
881 if [ "$USE_ALTERNATE_UDB_DIR" = "yes" ]
883 DATABASE_DIR=$ALTERNATE_UDB_DIR/databases
885 DATABASE_DIR=$BUILD_TREE/databases
888 if [ "$DATABASE_FILES" = "" ]
890 if [ "$DEVELOP_ENV" = "yes" ]
892 DATABASE_FILES="CDE-HELP-PRG CDE-PRG CDE-INC CDE-DEMOS \
893 CDE-MAN-DEV CDE-SHLIBS"
894 elif [ "$RUNTIME_ENV" = "yes" ]
896 DATABASE_FILES="CDE-RUN CDE-MIN CDE-TT CDE-MAN CDE-HELP-RUN CDE-C \
897 CDE-HELP-C CDE-MSG-C CDE-SHLIBS CDE-ICONS CDE-FONTS \
898 CDE-INFO CDE-INFOLIB-C"
900 DATABASE_FILES="CDE-RUN CDE-MIN CDE-TT CDE-MAN CDE-HELP-RUN CDE-C \
901 CDE-MSG-C CDE-HELP-C CDE-SHLIBS CDE-HELP-PRG \
902 CDE-PRG CDE-INC CDE-DEMOS CDE-MAN-DEV CDE-ICONS \
903 CDE-FONTS CDE-INFO CDE-INFOLIB-C"
906 HASH now load any localized filesets
907 if [ "$DEVELOP_ENV" != "yes" ]
909 if [ "$theLang" != "" ]
911 DATABASE_FILES="$DATABASE_FILES CDE-$theLang CDE-MSG-$theLang \
914 HASH load all current (working) languages
915 DATABASE_FILES="$DATABASE_FILES \
932 [ -z "$INSTALL_LOCATION" ] && INSTALL_LOCATION=CDE_INSTALLATION_TOP
933 [ -z "$CONFIGURE_LOCATION" ] && CONFIGURE_LOCATION=CDE_CONFIGURATION_TOP
934 [ -z "$LOGFILES_LOCATION" ] && LOGFILES_LOCATION=CDE_LOGFILES_TOP
936 if [ -L $INSTALL_LOCATION -a "$CONFIGURE_ONLY" != "yes" ]
938 touch $INSTALL_LOCATION/foo >/dev/null 2>/dev/null
939 if [ ! -f $INSTALL_LOCATION/foo ]
941 Log "Insufficient permissions to install CDE files in $INSTALL_LOCATION"
944 if [ ! -O $INSTALL_LOCATION/foo ]
946 Log "Root access to $INSTALL_LOCATION is required for CDE installation."
949 rm $INSTALL_LOCATION/foo
952 if [ -d $INSTALL_LOCATION ]
954 if [ -x $INSTALL_LOCATION/bin -a ! -d $INSTALL_LOCATION/bin ]
956 rm -f $INSTALL_LOCATION/bin
960 if [ "$CONFIGURE_ONLY" = "yes" ]
962 CheckForActualLocations
964 Log "Configuration completed."
968 if [ "$RUN_SCRIPTS_ONLY" = "yes" ]
974 CheckForActualLocations
976 if [ "$DO_LINK_STEP_ONLY" = "yes" ]
981 if [ "$CREATE_PACKING_LIST" = "yes" ]
988 XCOMM we are ready to load the environment ...
991 if [ "$BUILD_TREE" != "" ]
993 Log "Load the Desktop from $BUILD_TREE"
997 for i in `echo $DATABASE_FILES`
999 LoadFileSet "$j" "$i"
1003 Log "Load the Desktop from $TAR_TREE"
1004 compressed=$(awk '/COMPRESSED: /{print $2}' $TAR_TREE/$CDEPACKAGE)
1005 if [ "$compressed" = "yes" ]; then
1006 uncompress <$TAR_TREE/$CDETARFILEZ | tar xvf - $INSTALL_LOCATION
1008 tar -xvf $TAR_TREE/$CDETARFILE $INSTALL_LOCATION
1010 DATABASE_FILES=$(awk 'BEGIN {FS=":"} /FILESETS: /{print $2}' $TAR_TREE/$CDEPACKAGE)
1014 Log "Desktop installed in $INSTALL_LOCATION"
1016 if [ "$DO_INSTALL_ONLY" = "yes" ]
1021 if [ $TARBALL = "yes" ];
1028 if [ "$RUN_SCRIPTS" = "yes" ]
1033 if [ "$REMOVE_LINKS" = "yes" ]
1035 [ -L /usr/dt ] && rm /usr/dt
1036 [ -L /etc/dt ] && rm /etc/dt
1037 [ -L /var/dt ] && rm /var/dt
1042 echo "See $LOGFILE for a log of this install session."