6 XCOMM @(#) $XConsortium: configRun.src /main/6 1996/10/18 16:30:22 drk $
9 XCOMM (c) Copyright Hewlett-Packard Company, 1993
16 CreateAppConfigDirectory()
19 HASH Create the APPCONFIG directory inside DT_CONFIG_TOP and create
20 HASH all of its subdirectories
24 if [ ! -d $APPCONFIG ]
31 for i in $APPCONFIG_DIRS
41 for j in $DT_TOP/$APPCONFIG/$i/STAR
43 if [ ! -d `basename $j` ]
57 rm -f $DT_TOP/$APPCONFIG/icons/C/F$SRC
58 ln -s $DT_TOP/$APPCONFIG/icons/C/$SRC $DT_TOP/$APPCONFIG/icons/C/F$SRC
70 XCOMM ##########################################################################
74 XCOMM ##########################################################################
79 DT_TOP=CDE_INSTALLATION_TOP
80 DT_CONFIG_TOP=CDE_CONFIGURATION_TOP
81 DT_TEMP_TOP=CDE_LOGFILES_TOP
87 APPCONFIG_DIRS="appmanager help icons types"
89 DEFAULT_PRINTER="Default_Print"
92 HASH create the CDE_LOGFILES_TOP directory
94 if [ ! -d $DT_TEMP_TOP/$APPCONFIG/appmanager ]
96 mkdir -p $DT_TEMP_TOP/$APPCONFIG/appmanager
98 mv $APPCONFIG/appmanager .hidden-appmanager
99 chmod -R 755 $DT_TEMP_TOP/STAR
100 chmod 755 $DT_TEMP_TMP/.hidden-appmanager
101 chown -R bin $DT_TEMP_TOP/STAR
102 chgrp -R bin $DT_TEMP_TOP/STAR
103 mv $DT_TEMP_TMP/.hidden-appmanager $DT_TEMP_TMP/$APPCONFIG/appmanager
104 chmod 755 $DT_TEMP_TOP
105 chown bin $DT_TEMP_TOP
106 chgrp bin $DT_TEMP_TOP
109 HASH create the CDE_CONFIGURATION_TOP and its config directory
111 if [ ! -d $DT_CONFIG_TOP ]
113 mkdir -p $DT_CONFIG_TOP
115 if [ ! -d $DT_CONFIG_TOP/config ]
117 mkdir -p $DT_CONFIG_TOP/config
120 CreateAppConfigDirectory
122 cd $DT_TOP/$APPCONFIG/appmanager
132 HASH for each directory in the locale, check for a
133 HASH localized version of the Printers directory
134 HASH and for the file lp_Print within that directory
138 if [ -f $j/$DEFAULT_PRINTER ]
143 HASH make the equivalent directory in the configuration
146 if [ ! -d $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i ]
148 mkdir $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i
150 cd $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i
151 if [ ! -d $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i/$PRINTERS ]
153 mkdir $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i/$PRINTERS
155 cd $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i/$PRINTERS
157 HASH now copy the file over from the installation dirctory
158 HASH if it is not already present.
160 if [ ! -f $DEFAULT_PRINTER ]
162 cp $DT_TOP/$APPCONFIG/appmanager/$i/$PRINTERS/$DEFAULT_PRINTER .
164 cd $DT_TOP/$APPCONFIG/appmanager/$i
167 cd $DT_TOP/$APPCONFIG/appmanager
172 HASH Configure Xsession.d
175 cd $DT_CONFIG_TOP/config
176 if [ ! -d Xsession.d ]
181 chmod -R 755 $DT_CONFIG_TOP
186 HASH mkProd can't seem to handle a mode of 2555 so
190 chmod 2555 $DT_TOP/bin/dtmail