configRun 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004
  1. #! /bin/ksh
  2. ########
  3. # Product: CDE
  4. # Fileset: CDE-RUN
  5. # configure
  6. # @(#) $TOG: configRun /main/2 1998/11/05 15:04:43 mgreess $
  7. ########
  8. PRODUCT=CDE
  9. FILESET=CDE-RUN
  10. retval=0
  11. CreateAppConfigDirectory()
  12. {
  13. #
  14. # Create the APPCONFIG directory inside DT_CONFIG_TOP and create
  15. # all of its subdirectories
  16. #
  17. cd $DT_CONFIG_TOP
  18. if [ ! -d $APPCONFIG ]
  19. then
  20. mkdir $APPCONFIG
  21. fi
  22. cd $APPCONFIG
  23. for i in $APPCONFIG_DIRS
  24. do
  25. if [ ! -d $i ]
  26. then
  27. mkdir $i
  28. fi
  29. cd $i
  30. #
  31. # for each locale
  32. #
  33. for j in $DT_TOP/$APPCONFIG/$i/*
  34. do
  35. if [ ! -d `basename $j` ]
  36. then
  37. mkdir `basename $j`
  38. fi
  39. done
  40. cd ..
  41. done
  42. }
  43. FixInetdDotConf()
  44. {
  45. FILE="/etc/inetd.conf"
  46. TMPFILE="/tmp/inetd.conf"
  47. #
  48. # desired inetd.conf entry:
  49. # rpc dgram udp wait root /usr/dt/bin/rpc.cmsd 100068 2-4 cmsd
  50. #
  51. #
  52. # get rid of legacy entry
  53. #
  54. awk '{if ($1 == "#rpc" && $7 == "100068" && $9 == "rpc.cmsd")
  55. ;
  56. else
  57. print $0
  58. }' $FILE >$TMPFILE
  59. mv $FILE ${FILE}.old
  60. mv $TMPFILE $FILE
  61. CMSD=/usr/dt/bin/rpc.cmsd
  62. awk -v cmsd=$CMSD \
  63. '{if ($7 == "100068" && $6 != cmsd)
  64. print "#cde " $0;
  65. else
  66. print $0
  67. }' $FILE >$TMPFILE
  68. #
  69. # remove 100068 2-4 rpc.cmsd entry
  70. #
  71. awk -v cmsd=$CMSD \
  72. '{if ($6 == cmsd && $7 == "100068" && $8 == "2-4")
  73. ;
  74. else
  75. print $0
  76. }' $FILE >$TMPFILE
  77. mv $FILE ${FILE}.old
  78. mv $TMPFILE $FILE
  79. #
  80. # now see if there is an occurrence of cmsd
  81. #
  82. awk -v cmsd=$CMSD \
  83. '{if ($6 == cmsd && $7 == "100068" && $8 == "2-5")
  84. print $0 >"/tmp/cmsd-already-there"
  85. }' $FILE >/dev/null
  86. #
  87. # if it is not there, add it
  88. #
  89. if [ ! -f /tmp/cmsd-already-there ]
  90. then
  91. echo "rpc dgram udp wait root $CMSD 100068 2-5 rpc.cmsd" >>$FILE
  92. else
  93. rm /tmp/cmsd-already-there
  94. fi
  95. }
  96. UnfixInetdDotConf()
  97. {
  98. FILE="/etc/inetd.conf"
  99. TMPFILE="/tmp/inetd.conf"
  100. CMSD=/usr/dt/bin/rpc.cmsd
  101. # first remove the CDE rpc.cmsd entry
  102. awk -v cmsd=$CMSD \
  103. '{if ($7 == "100068" && $6 == cmsd)
  104. ;
  105. else
  106. print $0
  107. }' $FILE >$TMPFILE
  108. mv $TMPFILE $FILE
  109. # now uncomment any previously existing 100068 entry
  110. awk '{if ($1 == "#cde") {
  111. if ($8 == "100068") {
  112. $1 = $2;
  113. $2 = ""
  114. }
  115. }
  116. print $0
  117. }' $FILE >$TMPFILE
  118. mv $TMPFILE $FILE
  119. }
  120. FixEtcRpc()
  121. {
  122. #
  123. # now check to see if the proper entry is in /etc/rpc
  124. #
  125. RPCFILE=/etc/rpc
  126. TMPFILE=/tmp/etc-rpc
  127. if [ ! -f $RPCFILE ]
  128. then
  129. # if the file doesn't exist (highly unlikely), make one
  130. # with the proper entry
  131. #
  132. echo "cmsd 100068 dtcalendar" >$RPCFILE
  133. else
  134. #
  135. # check to see if the entry is already there
  136. #
  137. awk '{if ($1 == "cmsd" && $2 == "100068")
  138. print $0 > "/tmp/etc-rpc-already-there"
  139. }' $RPCFILE >/dev/null
  140. if [ ! -f /tmp/etc-rpc-already-there ]
  141. then
  142. #
  143. # if it isn't, check to see if either term already
  144. # exists
  145. #
  146. awk '{if ($1 == "cmsd" || $2 == "100068")
  147. print $0 > "/tmp/etc-rpc-already-there"
  148. }' $RPCFILE >/dev/null
  149. #
  150. # if either one does they need to be commented out
  151. #
  152. if [ ! -f /tmp/etc-rpc-already-there ]
  153. then
  154. echo "cmsd 100068 dtcalendar" >>$RPCFILE
  155. else
  156. awk '{if ($1 == "cmsd" || $2 == "100068")
  157. print "#cde " $0;
  158. else
  159. print $0
  160. }' $RPCFILE >$TMPFILE
  161. echo "cmsd 100068 dtcalendar" >>$TMPFILE
  162. mv $TMPFILE $RPCFILE
  163. rm /tmp/etc-rpc-already-there
  164. fi
  165. else
  166. rm /tmp/etc-rpc-already-there
  167. fi
  168. fi
  169. }
  170. UnfixEtcRpc()
  171. {
  172. FILE="/etc/rpc"
  173. TMPFILE="/tmp/etc-rpc"
  174. awk '{if ($1 == "cmsd" && $2 == "100068")
  175. ;
  176. else
  177. print $0
  178. }' $FILE >$TMPFILE
  179. mv $TMPFILE $FILE
  180. awk '{if ($1 == "#cde" && ($2 == "cmsd" || $3 == "100068"))
  181. ;
  182. else
  183. print $0
  184. }' $FILE >$TMPFILE
  185. mv $TMPFILE $FILE
  186. }
  187. ConfigurePrintersDir()
  188. {
  189. cd $DT_TOP/$APPCONFIG/appmanager
  190. #
  191. # for each locale
  192. #
  193. for i in *
  194. do
  195. if [ -d $i ]
  196. then
  197. cd $i
  198. #
  199. # for each directory in the locale, check for a
  200. # localized version of the Printers directory
  201. # and for the file lp_Print within that directory
  202. #
  203. for j in *
  204. do
  205. if [ -f $j/$DEFAULT_PRINTER ]
  206. then
  207. PRINTERS=$j
  208. # make the equivalent directory in the configuration
  209. # directory
  210. if [ ! -d $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i ]
  211. then
  212. mkdir $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i
  213. fi
  214. cd $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i
  215. if [ ! -d $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i/$PRINTERS ]
  216. then
  217. mkdir $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i/$PRINTERS
  218. fi
  219. cd $DT_CONFIG_TOP/$APPCONFIG/appmanager/$i/$PRINTERS
  220. # now copy the file over from the installation dirctory
  221. # if it is not already present.
  222. if [ ! -f $DEFAULT_PRINTER ]
  223. then
  224. cp $DT_TOP/$APPCONFIG/appmanager/$i/$PRINTERS/$DEFAULT_PRINTER .
  225. fi
  226. cd $DT_TOP/$APPCONFIG/appmanager/$i
  227. fi
  228. done
  229. cd $DT_TOP/$APPCONFIG/appmanager
  230. fi
  231. done
  232. }
  233. KillIt()
  234. {
  235. ps -ef | fgrep $1 | grep -v grep >/tmp/tmppsout
  236. if [ -s /tmp/tmppsout ]
  237. then
  238. awk '{print "kill " $2}' /tmp/tmppsout | /bin/ksh
  239. sleep 2
  240. ps -ef | fgrep $1 | grep -v grep >/tmp/tmppsout
  241. if [ -s /tmp/tmppsout ]
  242. then
  243. awk '{print "kill -TERM " $2}' /tmp/tmppsout | /bin/ksh
  244. sleep 2
  245. ps -ef | fgrep $1 | grep -v grep >/tmp/tmppsout
  246. if [ -s /tmp/tmppsout ]
  247. then
  248. awk '{print "kill -9 " $2}' /tmp/tmppsout | /bin/ksh
  249. sleep 2
  250. fi
  251. fi
  252. fi
  253. rm /tmp/tmppsout
  254. }
  255. RemoveRunFiles()
  256. {
  257. while read SRC
  258. do
  259. if [ "$SRC" != "" ]
  260. then
  261. rm -f $SRC
  262. dirname=${SRC%/*}
  263. if [ -d $dirname ]
  264. then
  265. cd $dirname
  266. while [ "$dirname" != "$CDE_TOP" ]
  267. do
  268. cd ..
  269. rmdir ${dirname##*/} >/dev/null 2>/dev/null
  270. dirname=${dirname%/*}
  271. done
  272. fi
  273. fi
  274. done <<-EOF
  275. /usr/dt/config/Xfailsafe
  276. /usr/dt/bin/dtrc
  277. /usr/dt/bin/dtrc
  278. /usr/dt/bin/rc.dt
  279. /usr/dt/config/Xconfig
  280. /usr/dt/config/Xreset
  281. /usr/dt/config/Xsetup
  282. /usr/dt/config/Xservers
  283. /usr/dt/config/Xaccess
  284. /usr/dt/config/Xstartup
  285. /usr/dt/config/C/Xresources
  286. /usr/dt/config/C/sys.dtwmrc
  287. /usr/dt/config/sys.dtprofile
  288. /usr/dt/config/C/sys.resources
  289. /usr/dt/config/C/sys.session
  290. /usr/dt/config/C/sys.font
  291. /usr/dt/config/dtlogin.rc
  292. /usr/dt/bin/dtconfig
  293. /usr/dt/bin/dtconfig
  294. /usr/dt/app-defaults/C/Dthello
  295. /usr/dt/app-defaults/C/Dtsession
  296. /usr/dt/app-defaults/C/Dtwm
  297. /usr/dt/app-defaults/C/Dtfile
  298. /usr/dt/app-defaults/C/Dtstyle
  299. /usr/dt/app-defaults/C/Dtpad
  300. /usr/dt/app-defaults/C/Dtscreen
  301. /usr/dt/app-defaults/C/Dticon
  302. /usr/dt/app-defaults/C/Dtcalc
  303. /usr/dt/app-defaults/C/Dtterm
  304. /usr/dt/app-defaults/C/Dt
  305. /usr/dt/app-defaults/C/Dtcreate
  306. /usr/dt/app-defaults/C/Dtprintinfo
  307. /usr/dt/app-defaults/C/UNIXbindings
  308. /usr/dt/bin/Xsession
  309. /usr/dt/config/Xsession.d/0010.dtpaths
  310. /usr/dt/config/Xsession.d/0020.dtims
  311. /usr/dt/config/Xsession.d/0030.dttmpdir
  312. /usr/dt/config/Xsession.d/0050.srcdotsh
  313. /usr/dt/share/examples/sys.font.iso
  314. /usr/dt/bin/dtprintinfo
  315. /usr/dt/config/C/dtfile.config
  316. /usr/dt/bin/dtconvertvf
  317. /usr/dt/bin/dtconvertvf
  318. /usr/dt/bin/dtcreate
  319. /usr/dt/appconfig/appmanager/C/Information/README
  320. /usr/dt/appconfig/appmanager/C/System_Admin/README
  321. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Bitmap
  322. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Spell
  323. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xclipboard
  324. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Diff
  325. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Compress
  326. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermConsole
  327. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Wc
  328. /usr/dt/appconfig/appmanager/C/Desktop_Tools/XclockDig
  329. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DuSort
  330. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Df
  331. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xfd
  332. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DtwmrcEdit
  333. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ReloadResources
  334. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ExecuteCmd
  335. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Env
  336. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xlsfonts
  337. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Nm
  338. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xwininfo
  339. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xprop
  340. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Make
  341. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xrefresh
  342. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ReloadActions
  343. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ReloadApps
  344. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermRlogin
  345. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermDtspcd
  346. /usr/dt/appconfig/appmanager/C/Desktop_Tools/XtermRlogin
  347. /usr/dt/appconfig/appmanager/C/Desktop_Tools/XtermDtspcd
  348. /usr/dt/appconfig/appmanager/C/Desktop_Tools/RestorePanel
  349. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Rm
  350. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Grep
  351. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xload
  352. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Tar
  353. /usr/dt/appconfig/appmanager/C/Desktop_Tools/TarList
  354. /usr/dt/appconfig/appmanager/C/Desktop_Tools/TarUnpack
  355. /usr/dt/appconfig/appmanager/C/Desktop_Tools/File
  356. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Uncompress
  357. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Vi
  358. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermErrorlog
  359. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xterm
  360. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xdpyinfo
  361. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xwd
  362. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xwud
  363. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtcalc
  364. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtcm
  365. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtcreate
  366. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtfile
  367. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dticon
  368. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dthelpview
  369. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtmail
  370. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtmanpageview
  371. /usr/dt/appconfig/appmanager/C/Desktop_Apps/DtPrintManager
  372. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtstyle
  373. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtpad
  374. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtterm
  375. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dttrash
  376. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Dttypes
  377. /usr/dt/bin/dtlp
  378. /usr/dt/share/palettes/desc.C
  379. /usr/dt/share/backdrops/desc.C
  380. /usr/dt/share/backdrops/Foreground.bm
  381. /usr/dt/share/backdrops/Background.bm
  382. /usr/dt/share/backdrops/NoBackdrop.pm
  383. /usr/dt/share/backdrops/Ankh.bm
  384. /usr/dt/share/backdrops/BrickWall.bm
  385. /usr/dt/share/backdrops/Concave.pm
  386. /usr/dt/share/backdrops/Convex.pm
  387. /usr/dt/share/backdrops/Corduroy.pm
  388. /usr/dt/share/backdrops/Crochet.pm
  389. /usr/dt/share/backdrops/InlayColor.pm
  390. /usr/dt/share/backdrops/InlayPlain.pm
  391. /usr/dt/share/backdrops/KnitLight.pm
  392. /usr/dt/share/backdrops/Lattice.pm
  393. /usr/dt/share/backdrops/LatticeBig.pm
  394. /usr/dt/share/backdrops/Leaves.pm
  395. /usr/dt/share/backdrops/OldChars.pm
  396. /usr/dt/share/backdrops/Paver.pm
  397. /usr/dt/share/backdrops/Pebbles.pm
  398. /usr/dt/share/backdrops/PinStripe.pm
  399. /usr/dt/share/backdrops/RakedSand.bm
  400. /usr/dt/share/backdrops/RicePaper.pm
  401. /usr/dt/share/backdrops/SkyDark.pm
  402. /usr/dt/share/backdrops/SkyLight.pm
  403. /usr/dt/share/backdrops/Sprinkles.pm
  404. /usr/dt/share/backdrops/Toronto.bm
  405. /usr/dt/share/backdrops/WaterDrops.pm
  406. /usr/dt/share/backdrops/Wooly.pm
  407. /usr/dt/backdrops
  408. /usr/dt/bin/dtfile_error
  409. /usr/dt/bin/dtfile
  410. /usr/dt/bin/dtfile_copy
  411. /usr/dt/bin/dtsession
  412. /usr/dt/bin/dtsession_res
  413. /usr/dt/bin/dtwm
  414. /usr/dt/bin/dtfplist
  415. /usr/dt/bin/dtlogin
  416. /usr/dt/bin/dtchooser
  417. /usr/dt/bin/dtgreet
  418. /usr/dt/bin/hpterm
  419. /usr/dt/bin/hpterm
  420. /usr/dt/bin/aixterm
  421. /usr/dt/bin/dthello
  422. /usr/dt/bin/dtaction
  423. /usr/dt/bin/dtpad
  424. /usr/dt/bin/dtstyle
  425. /usr/dt/bin/dtscreen
  426. /usr/dt/bin/dticon
  427. /usr/dt/bin/dtcalc
  428. /usr/dt/bin/dtterm
  429. /usr/dt/config/dtterm.ti
  430. /usr/dt/bin/dtsearchpath
  431. /usr/dt/bin/dtappgather
  432. /usr/dt/bin/dttypes
  433. /usr/dt/bin/dsdm
  434. /usr/dt/bin/rpc.cmsd
  435. /usr/dt/bin/dtcm
  436. /usr/dt/bin/dtcm_admin
  437. /usr/dt/bin/dtcm_editor
  438. /usr/dt/bin/dtcm_delete
  439. /usr/dt/bin/dtcm_insert
  440. /usr/dt/bin/dtcm_lookup
  441. /usr/dt/appconfig/types/C/dtcm.dt
  442. /usr/dt/app-defaults/C/Dtcm
  443. /usr/dt/bin/dtdspmsg
  444. /usr/dt/bin/dtmail
  445. /usr/dt/bin/dtmailpr
  446. /usr/dt/bin/dtmailconv
  447. /usr/dt/appconfig/types/C/dtmail.dt
  448. /usr/dt/app-defaults/C/Dtmail
  449. /usr/dt/appconfig/types/C/dtwm.fp
  450. /usr/dt/appconfig/types/C/autoStart.dt
  451. /usr/dt/appconfig/types/C/uxstd.dt
  452. /usr/dt/appconfig/types/C/dt.dt
  453. /usr/dt/appconfig/types/C/develop.dt
  454. /usr/dt/appconfig/types/C/datatypes.dt
  455. /usr/dt/appconfig/types/C/dtappman.dt
  456. /usr/dt/appconfig/types/C/dtfile.dt
  457. /usr/dt/appconfig/types/C/dtpad.dt
  458. /usr/dt/appconfig/types/C/xclients.dt
  459. /usr/dt/appconfig/types/C/print.dt
  460. /usr/dt/appconfig/types/C/user-prefs.dt
  461. /usr/dt/appconfig/types/C/dthelp.dt
  462. /usr/dt/appconfig/types/C/dtscreen.dt
  463. /usr/dt/share/examples/types/C/IconBrowse.dt
  464. /usr/dt/share/examples/types/C/miscActions.dt
  465. /usr/dt/share/examples/types/C/miscImages.dt
  466. /usr/dt/bin/dterror.ds
  467. /usr/dt/bin/xmbind
  468. /usr/dt/lib/bindings/xmbind.alias
  469. /usr/dt/lib/bindings/acorn
  470. /usr/dt/lib/bindings/apollo
  471. /usr/dt/lib/bindings/dg_AViiON
  472. /usr/dt/lib/bindings/doubleclick
  473. /usr/dt/lib/bindings/hitachi
  474. /usr/dt/lib/bindings/hp
  475. /usr/dt/lib/bindings/ibm
  476. /usr/dt/lib/bindings/intergraph
  477. /usr/dt/lib/bindings/intergraph17
  478. /usr/dt/lib/bindings/megatek
  479. /usr/dt/lib/bindings/motorola
  480. /usr/dt/lib/bindings/ncr_at
  481. /usr/dt/lib/bindings/ncr_vt
  482. /usr/dt/lib/bindings/sgi
  483. /usr/dt/lib/bindings/siemens_9733
  484. /usr/dt/lib/bindings/siemens_wx200
  485. /usr/dt/lib/bindings/sony
  486. /usr/dt/lib/bindings/sun
  487. /usr/dt/lib/bindings/tek
  488. /usr/dt/config/Xsession.d/0040.xmbind
  489. /usr/dt/examples
  490. EOF
  491. }
  492. VerifyInstalledFiles()
  493. {
  494. echo "Status mode owner group filename"
  495. echo "-----------------------------------------"
  496. # exists correct correct correct /usr/dt/foo1
  497. # MISSING WRONG WRONG WRONG /usr/dt/foo2
  498. # exists the link is correct /usr/dt/link
  499. while read SRC
  500. do
  501. if [ "$SRC" != "" ]
  502. then
  503. set -A tokens $SRC
  504. if [ "${tokens[3]}" = "file" ]
  505. then
  506. if [ -f ${tokens[0]} ]
  507. then
  508. echo "exists \c"
  509. else
  510. echo "MISSING or REMOVED \c"
  511. echo "${tokens[0]}"
  512. continue
  513. fi
  514. elif [ "${tokens[3]}" = "sym_link" ]
  515. then
  516. if [ -L ${tokens[0]} ]
  517. then
  518. echo "exists \c"
  519. else
  520. echo "MISSING or REMOVED \c"
  521. echo "${tokens[0]}"
  522. continue
  523. fi
  524. fi
  525. if [ "${tokens[3]}" = "file" ]
  526. then
  527. touch /tmp/config-test
  528. chmod ${tokens[1]} /tmp/config-test
  529. tmpperms=`ls -l /tmp/config-test | awk '{print $1}'`
  530. realperms=`ls -l ${tokens[0]} | awk '{print $1}'`
  531. if [ "$tmpperms" = "$realperms" ]
  532. then
  533. echo "correct \c"
  534. else
  535. echo " WRONG \c"
  536. fi
  537. owner=`ls -l ${tokens[0]} | awk '{print $3}'`
  538. if [ "$owner" = "${tokens[4]}" ]
  539. then
  540. echo "correct \c"
  541. else
  542. echo " WRONG \c"
  543. fi
  544. group=`ls -l ${tokens[0]} | awk '{print $4}'`
  545. if [ "$group" = "${tokens[5]}" ]
  546. then
  547. echo "correct \c"
  548. else
  549. echo " WRONG \c"
  550. fi
  551. elif [ "${tokens[3]}" = "sym_link" ]
  552. then
  553. linkto=`ls -l ${tokens[0]} | awk '{print $11}'`
  554. if [ "${tokens[2]}" = "$linkto" ]
  555. then
  556. echo " the link is correct \c"
  557. else
  558. echo " the link is WRONG \c"
  559. fi
  560. fi
  561. echo "${tokens[0]}"
  562. fi
  563. done <<-EOF
  564. /usr/dt/config/Xfailsafe 0555 cde1/dtlogin/config/Xfailsafe file bin bin di---- 378 cde_dt
  565. /usr/dt/bin/dtrc 0544 cde1/dtconfig/hp/dtrc file bin bin di---- 378 cde_dt
  566. /usr/dt/config/Xconfig 0444 cde1/dtlogin/config/Xconfig file bin bin di---- 378 cde_dt
  567. /usr/dt/config/Xreset 0544 cde1/dtlogin/config/Xreset file bin bin di---- 378 cde_dt
  568. /usr/dt/config/Xsetup 0544 cde1/dtlogin/config/Xsetup file bin bin di---- 378 cde_dt
  569. /usr/dt/config/Xservers 0444 cde1/dtlogin/config/Xservers file bin bin di---- 378 cde_dt
  570. /usr/dt/config/Xaccess 0444 cde1/dtlogin/config/Xaccess file bin bin di---- 378 cde_dt
  571. /usr/dt/config/Xstartup 0544 cde1/dtlogin/config/Xstartup file bin bin di---- 378 cde_dt
  572. /usr/dt/config/C/Xresources 0444 cde1/localized/C/config/Xresources file bin bin di---- 378 cde_dt
  573. /usr/dt/config/C/sys.dtwmrc 0444 cde1/localized/C/config/sys.dtwmrc file bin bin di---- 378 cde_dt
  574. /usr/dt/config/sys.dtprofile 0555 cde1/dtlogin/config/dtprofile file bin bin di---- 378 cde_dt
  575. /usr/dt/config/C/sys.resources 0444 cde1/localized/C/config/sys.resources file bin bin di---- 378 cde_dt
  576. /usr/dt/config/C/sys.session 0444 cde1/localized/C/config/sys.session file bin bin di---- 378 cde_dt
  577. /usr/dt/config/C/sys.font 0444 cde1/localized/C/config/sys.font file bin bin di---- 378 cde_dt
  578. /usr/dt/app-defaults/C/Dthello 0444 cde1/localized/C/app-defaults/Dthello file bin bin di---- 378 cde_dt
  579. /usr/dt/app-defaults/C/Dtsession 0444 cde1/localized/C/app-defaults/Dtsession file bin bin di---- 378 cde_dt
  580. /usr/dt/app-defaults/C/Dtwm 0444 cde1/localized/C/app-defaults/Dtwm file bin bin di---- 378 cde_dt
  581. /usr/dt/app-defaults/C/Dtfile 0444 cde1/localized/C/app-defaults/Dtfile file bin bin di---- 378 cde_dt
  582. /usr/dt/app-defaults/C/Dtstyle 0444 cde1/localized/C/app-defaults/Dtstyle file bin bin di---- 378 cde_dt
  583. /usr/dt/app-defaults/C/Dtpad 0444 cde1/localized/C/app-defaults/Dtpad file bin bin di---- 378 cde_dt
  584. /usr/dt/app-defaults/C/Dtscreen 0444 cde1/localized/C/app-defaults/Dtscreen file bin bin di---- 378 cde_dt
  585. /usr/dt/app-defaults/C/Dticon 0444 cde1/localized/C/app-defaults/Dticon file bin bin di---- 378 cde_dt
  586. /usr/dt/app-defaults/C/Dtcalc 0444 cde1/localized/C/app-defaults/Dtcalc file bin bin di---- 378 cde_dt
  587. /usr/dt/app-defaults/C/Dtterm 0444 cde1/localized/C/app-defaults/Dtterm file bin bin di---- 378 cde_dt
  588. /usr/dt/app-defaults/C/Dt 0444 cde1/localized/C/app-defaults/Dt file bin bin di---- 378 cde_dt
  589. /usr/dt/app-defaults/C/Dtcreate 0444 cde1/localized/C/app-defaults/Dtcreate file bin bin di---- 378 cde_dt
  590. /usr/dt/app-defaults/C/Dtprintinfo 0444 cde1/dtprintinfo/Dtprintinfo file bin bin di---- 378 cde_dt
  591. /usr/dt/app-defaults/C/UNIXbindings 0444 lib1/DtWidget/UNIXbindings file bin bin di---- 378 cde_dt
  592. /usr/dt/bin/Xsession 0555 cde1/dtlogin/config/Xsession file bin bin di---- 378 cde_dt
  593. /usr/dt/config/Xsession.d/0010.dtpaths 0555 cde1/dtsearchpath/0010.dtpaths file bin bin di---- 378 cde_dt
  594. /usr/dt/config/Xsession.d/0020.dtims 0555 cde1/dtlogin/config/0020.dtims file bin bin di---- 378 cde_dt
  595. /usr/dt/config/Xsession.d/0030.dttmpdir 0555 cde1/dtsearchpath/0030.dttmpdir file bin bin di---- 378 cde_dt
  596. /usr/dt/config/Xsession.d/0050.srcdotsh 0555 cde1/dtsearchpath/0050.srcdotsh file bin bin di---- 378 cde_dt
  597. /usr/dt/share/examples/sys.font.iso 0444 cde1/dtsession/sys.font.iso file bin bin di---- 378 cde_dt
  598. /usr/dt/bin/dtprintinfo 04555 cde1/dtprintinfo/dtprintinfo file root bin di---- 378 cde_dt
  599. /usr/dt/config/C/dtfile.config 0444 cde1/localized/C/config/dtfile.config file bin bin di---- 378 cde_dt
  600. /usr/dt/bin/dtconvertvf 0555 cde1/util/scripts/convertvf file bin bin di---- 378 cde_dt
  601. /usr/dt/bin/dtcreate 0555 cde1/dtcreate/dtcreate file bin bin di---- 378 cde_dt
  602. /usr/dt/appconfig/appmanager/C/Information/README 0444 cde1/dtappgather/howto-customize file bin bin di---- 378 cde_dt
  603. /usr/dt/appconfig/appmanager/C/System_Admin/README 0444 cde1/dtappgather/howto-customize file bin bin di---- 378 cde_dt
  604. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Bitmap 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  605. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Spell 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  606. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xclipboard 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  607. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Diff 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  608. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Compress 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  609. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermConsole 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  610. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Wc 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  611. /usr/dt/appconfig/appmanager/C/Desktop_Tools/XclockDig 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  612. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DuSort 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  613. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Df 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  614. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xfd 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  615. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DtwmrcEdit 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  616. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ReloadResources 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  617. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ExecuteCmd 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  618. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Env 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  619. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xlsfonts 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  620. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Nm 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  621. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xwininfo 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  622. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xprop 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  623. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Make 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  624. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xrefresh 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  625. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ReloadActions 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  626. /usr/dt/appconfig/appmanager/C/Desktop_Tools/ReloadApps 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  627. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermRlogin 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  628. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermDtspcd 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  629. /usr/dt/appconfig/appmanager/C/Desktop_Tools/XtermRlogin 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  630. /usr/dt/appconfig/appmanager/C/Desktop_Tools/XtermDtspcd 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  631. /usr/dt/appconfig/appmanager/C/Desktop_Tools/RestorePanel 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  632. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Rm 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  633. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Grep 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  634. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xload 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  635. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Tar 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  636. /usr/dt/appconfig/appmanager/C/Desktop_Tools/TarList 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  637. /usr/dt/appconfig/appmanager/C/Desktop_Tools/TarUnpack 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  638. /usr/dt/appconfig/appmanager/C/Desktop_Tools/File 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  639. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Uncompress 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  640. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Vi 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  641. /usr/dt/appconfig/appmanager/C/Desktop_Tools/DttermErrorlog 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  642. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xterm 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  643. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xdpyinfo 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  644. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xwd 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  645. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Xwud 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  646. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtcalc 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  647. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtcm 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  648. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtcreate 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  649. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtfile 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  650. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dticon 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  651. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dthelpview 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  652. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtmail 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  653. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtmanpageview 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  654. /usr/dt/appconfig/appmanager/C/Desktop_Apps/DtPrintManager 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  655. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtstyle 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  656. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtpad 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  657. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dtterm 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  658. /usr/dt/appconfig/appmanager/C/Desktop_Apps/Dttrash 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  659. /usr/dt/appconfig/appmanager/C/Desktop_Tools/Dttypes 0555 cde1/localized/C/types/action file bin bin di---- 378 cde_dt
  660. /usr/dt/bin/dtlp 0555 cde1/dtprintegrate/dtlp file bin bin di---- 378 cde_dt
  661. /usr/dt/share/palettes/desc.C 0444 cde1/localized/C/palettes/desc.C file bin bin di---- 378 cde_dt
  662. /usr/dt/share/backdrops/desc.C 0444 cde1/localized/C/backdrops/desc.C file bin bin di---- 378 cde_dt
  663. /usr/dt/share/backdrops/Foreground.bm 0444 cde1/backdrops/Foreground.bm file bin bin di---- 378 cde_dt
  664. /usr/dt/share/backdrops/Background.bm 0444 cde1/backdrops/Background.bm file bin bin di---- 378 cde_dt
  665. /usr/dt/share/backdrops/NoBackdrop.pm 0444 cde1/backdrops/NoBackdrop.pm file bin bin di---- 378 cde_dt
  666. /usr/dt/share/backdrops/Ankh.bm 0444 cde1/backdrops/Ankh.bm file bin bin di---- 378 cde_dt
  667. /usr/dt/share/backdrops/BrickWall.bm 0444 cde1/backdrops/BrickWall.bm file bin bin di---- 378 cde_dt
  668. /usr/dt/share/backdrops/Concave.pm 0444 cde1/backdrops/Concave.pm file bin bin di---- 378 cde_dt
  669. /usr/dt/share/backdrops/Convex.pm 0444 cde1/backdrops/Convex.pm file bin bin di---- 378 cde_dt
  670. /usr/dt/share/backdrops/Corduroy.pm 0444 cde1/backdrops/Corduroy.pm file bin bin di---- 378 cde_dt
  671. /usr/dt/share/backdrops/Crochet.pm 0444 cde1/backdrops/Crochet.pm file bin bin di---- 378 cde_dt
  672. /usr/dt/share/backdrops/InlayColor.pm 0444 cde1/backdrops/InlayColor.pm file bin bin di---- 378 cde_dt
  673. /usr/dt/share/backdrops/InlayPlain.pm 0444 cde1/backdrops/InlayPlain.pm file bin bin di---- 378 cde_dt
  674. /usr/dt/share/backdrops/KnitLight.pm 0444 cde1/backdrops/KnitLight.pm file bin bin di---- 378 cde_dt
  675. /usr/dt/share/backdrops/Lattice.pm 0444 cde1/backdrops/Lattice.pm file bin bin di---- 378 cde_dt
  676. /usr/dt/share/backdrops/LatticeBig.pm 0444 cde1/backdrops/LatticeBig.pm file bin bin di---- 378 cde_dt
  677. /usr/dt/share/backdrops/Leaves.pm 0444 cde1/backdrops/Leaves.pm file bin bin di---- 378 cde_dt
  678. /usr/dt/share/backdrops/OldChars.pm 0444 cde1/backdrops/OldChars.pm file bin bin di---- 378 cde_dt
  679. /usr/dt/share/backdrops/Paver.pm 0444 cde1/backdrops/Paver.pm file bin bin di---- 378 cde_dt
  680. /usr/dt/share/backdrops/Pebbles.pm 0444 cde1/backdrops/Pebbles.pm file bin bin di---- 378 cde_dt
  681. /usr/dt/share/backdrops/PinStripe.pm 0444 cde1/backdrops/PinStripe.pm file bin bin di---- 378 cde_dt
  682. /usr/dt/share/backdrops/RakedSand.bm 0444 cde1/backdrops/RakedSand.bm file bin bin di---- 378 cde_dt
  683. /usr/dt/share/backdrops/RicePaper.pm 0444 cde1/backdrops/RicePaper.pm file bin bin di---- 378 cde_dt
  684. /usr/dt/share/backdrops/SkyDark.pm 0444 cde1/backdrops/SkyDark.pm file bin bin di---- 378 cde_dt
  685. /usr/dt/share/backdrops/SkyLight.pm 0444 cde1/backdrops/SkyLight.pm file bin bin di---- 378 cde_dt
  686. /usr/dt/share/backdrops/Sprinkles.pm 0444 cde1/backdrops/Sprinkles.pm file bin bin di---- 378 cde_dt
  687. /usr/dt/share/backdrops/Toronto.bm 0444 cde1/backdrops/Toronto.bm file bin bin di---- 378 cde_dt
  688. /usr/dt/share/backdrops/WaterDrops.pm 0444 cde1/backdrops/WaterDrops.pm file bin bin di---- 378 cde_dt
  689. /usr/dt/share/backdrops/Wooly.pm 0444 cde1/backdrops/Wooly.pm file bin bin di---- 378 cde_dt
  690. /usr/dt/backdrops 0444 /usr/dt/share/backdrops sym_link bin bin di---- 378 cde_dt
  691. /usr/dt/bin/dtfile_error 0555 cde1/dtfile/dtfile_error file bin bin di---- 378 cde_dt
  692. /usr/dt/bin/dtfile 0555 cde1/dtfile/dtfile file bin bin di---- 378 cde_dt
  693. /usr/dt/bin/dtfile_copy 0555 cde1/dtfile/dtcopy/dtfile_copy file bin bin di---- 378 cde_dt
  694. /usr/dt/bin/dtsession 04555 cde1/dtsession/dtsession file root bin di---- 378 cde_dt
  695. /usr/dt/bin/dtsession_res 0555 cde1/dtsession/dtloadresources file bin bin di---- 378 cde_dt
  696. /usr/dt/bin/dtwm 0555 cde1/dtwm/dtwm file bin bin di---- 378 cde_dt
  697. /usr/dt/bin/dtfplist 0555 cde1/dtwm/dtfplist file bin bin di---- 378 cde_dt
  698. /usr/dt/bin/dtlogin 0544 cde1/dtlogin/dtlogin file root bin di---- 378 cde_dt
  699. /usr/dt/bin/dtchooser 0544 cde1/dtlogin/dtchooser file root bin di---- 378 cde_dt
  700. /usr/dt/bin/dtgreet 0544 cde1/dtlogin/dtgreet file bin bin di---- 378 cde_dt
  701. /usr/dt/bin/hpterm 04555 /usr/bin/X11/hpterm sym_link root bin di---- 378 cde_dt
  702. /usr/dt/bin/dthello 0555 cde1/dthello/dthello file bin bin di---- 378 cde_dt
  703. /usr/dt/bin/dtaction 06555 cde1/dtaction/dtaction file root sys di---- 378 cde_dt
  704. /usr/dt/bin/dtpad 0555 cde1/dtpad/dtpad file bin bin di---- 378 cde_dt
  705. /usr/dt/bin/dtstyle 0555 cde1/dtstyle/dtstyle file bin bin di---- 378 cde_dt
  706. /usr/dt/bin/dtscreen 0555 cde1/dtscreen/dtscreen file bin bin di---- 378 cde_dt
  707. /usr/dt/bin/dticon 0555 cde1/dticon/dticon file bin bin di---- 378 cde_dt
  708. /usr/dt/bin/dtcalc 0555 cde1/dtcalc/dtcalc file bin bin di---- 378 cde_dt
  709. /usr/dt/bin/dtterm 04555 cde1/dtterm/dtterm file root bin di---- 378 cde_dt
  710. /usr/dt/config/dtterm.ti 0444 cde1/dtterm/dtterm.ti file bin bin di---- 378 cde_dt
  711. /usr/dt/bin/dtsearchpath 0555 cde1/dtsearchpath/dtsp/dtsp file bin bin di---- 378 cde_dt
  712. /usr/dt/bin/dtappgather 04555 cde1/dtappgather/dtappg file root bin di---- 378 cde_dt
  713. /usr/dt/bin/dttypes 0555 cde1/util/dttypes/dttypes file bin bin di---- 378 cde_dt
  714. /usr/dt/bin/dsdm 0555 cde1/dsdm/dsdm file bin bin di---- 378 cde_dt
  715. /usr/dt/bin/rpc.cmsd 0555 cde1/dtcm/server/rpc.cmsd file bin bin di---- 378 cde_dt
  716. /usr/dt/bin/dtcm 0555 cde1/dtcm/dtcm/dtcm file bin bin di---- 378 cde_dt
  717. /usr/dt/bin/dtcm_admin 0555 cde1/dtcm/dtcm/dtcm_admin file bin bin di---- 378 cde_dt
  718. /usr/dt/bin/dtcm_editor 0555 cde1/dtcm/dtcm/dtcm_editor file bin bin di---- 378 cde_dt
  719. /usr/dt/bin/dtcm_delete 0555 cde1/dtcm/dtcm/dtcm_delete file bin bin di---- 378 cde_dt
  720. /usr/dt/bin/dtcm_insert 0555 cde1/dtcm/dtcm/dtcm_insert file bin bin di---- 378 cde_dt
  721. /usr/dt/bin/dtcm_lookup 0555 cde1/dtcm/dtcm/dtcm_lookup file bin bin di---- 378 cde_dt
  722. /usr/dt/appconfig/types/C/dtcm.dt 0444 cde1/localized/C/types/dtcm.dt file bin bin di---- 378 cde_dt
  723. /usr/dt/app-defaults/C/Dtcm 0444 cde1/localized/C/app-defaults/Dtcm file bin bin di---- 378 cde_dt
  724. /usr/dt/bin/dtdspmsg 0555 cde1/dtdspmsg/dtdspmsg file bin bin di---- 378 cde_dt
  725. /usr/dt/bin/dtmail 02555 cde1/dtmail/dtmail/dtmail file bin mail di---- 378 cde_dt
  726. /usr/dt/bin/dtmailpr 02555 cde1/dtmail/dtmailpr/dtmailpr file bin mail di---- 378 cde_dt
  727. /usr/dt/bin/dtmailconv 0555 cde1/dtmail/mailconv/mailconv file bin bin di---- 378 cde_dt
  728. /usr/dt/appconfig/types/C/dtmail.dt 0444 cde1/localized/C/types/dtmail.dt file bin bin di---- 378 cde_dt
  729. /usr/dt/app-defaults/C/Dtmail 0444 cde1/localized/C/app-defaults/Dtmail file bin bin di---- 378 cde_dt
  730. /usr/dt/appconfig/types/C/dtwm.fp 0444 cde1/localized/C/types/dtwm.fp file bin bin di---- 378 cde_dt
  731. /usr/dt/appconfig/types/C/autoStart.dt 0444 cde1/localized/C/types/autoStart.dt file bin bin di---- 378 cde_dt
  732. /usr/dt/appconfig/types/C/uxstd.dt 0444 cde1/localized/C/types/uxstd.dt file bin bin di---- 378 cde_dt
  733. /usr/dt/appconfig/types/C/dt.dt 0444 cde1/localized/C/types/dt.dt file bin bin di---- 378 cde_dt
  734. /usr/dt/appconfig/types/C/develop.dt 0444 cde1/localized/C/types/develop.dt file bin bin di---- 378 cde_dt
  735. /usr/dt/appconfig/types/C/datatypes.dt 0444 cde1/localized/C/types/datatypes.dt file bin bin di---- 378 cde_dt
  736. /usr/dt/appconfig/types/C/dtappman.dt 0444 cde1/localized/C/types/dtappman.dt file bin bin di---- 378 cde_dt
  737. /usr/dt/appconfig/types/C/dtfile.dt 0444 cde1/localized/C/types/dtfile.dt file bin bin di---- 378 cde_dt
  738. /usr/dt/appconfig/types/C/dtpad.dt 0444 cde1/localized/C/types/dtpad.dt file bin bin di---- 378 cde_dt
  739. /usr/dt/appconfig/types/C/xclients.dt 0444 cde1/localized/C/types/xclients.dt file bin bin di---- 378 cde_dt
  740. /usr/dt/appconfig/types/C/print.dt 0444 cde1/localized/C/types/print.dt file bin bin di---- 378 cde_dt
  741. /usr/dt/appconfig/types/C/user-prefs.dt 0444 cde1/localized/C/types/user-prefs.dt file bin bin di---- 378 cde_dt
  742. /usr/dt/appconfig/types/C/dthelp.dt 0444 cde1/localized/C/types/dthelp.dt file bin bin di---- 378 cde_dt
  743. /usr/dt/appconfig/types/C/dtscreen.dt 0444 cde1/localized/C/types/dtscreen.dt file bin bin di---- 378 cde_dt
  744. /usr/dt/share/examples/types/C/IconBrowse.dt 0444 cde1/localized/C/types/IconBrowse.dt file bin bin di---- 378 cde_dt
  745. /usr/dt/share/examples/types/C/miscActions.dt 0444 cde1/localized/C/types/miscActions.dt file bin bin di---- 378 cde_dt
  746. /usr/dt/share/examples/types/C/miscImages.dt 0444 cde1/localized/C/types/miscImages.dt file bin bin di---- 378 cde_dt
  747. /usr/dt/bin/dterror.ds 0555 cde1/localized/C/types/error.ds file bin bin di---- 378 cde_dt
  748. /usr/dt/bin/xmbind 0555 osf/xmbind/xmbind file bin bin di---- 378 cde_dt
  749. /usr/dt/lib/bindings/xmbind.alias 0444 lib/Xm/bindings/xmbind.alias file bin bin di---- 378 cde_dt
  750. /usr/dt/lib/bindings/acorn 0444 lib/Xm/bindings/acorn file bin bin di---- 378 cde_dt
  751. /usr/dt/lib/bindings/apollo 0444 lib/Xm/bindings/apollo file bin bin di---- 378 cde_dt
  752. /usr/dt/lib/bindings/dg_AViiON 0444 lib/Xm/bindings/dg_AViiON file bin bin di---- 378 cde_dt
  753. /usr/dt/lib/bindings/doubleclick 0444 lib/Xm/bindings/doubleclick file bin bin di---- 378 cde_dt
  754. /usr/dt/lib/bindings/hitachi 0444 lib/Xm/bindings/hitachi file bin bin di---- 378 cde_dt
  755. /usr/dt/lib/bindings/hp 0444 lib/Xm/bindings/hp file bin bin di---- 378 cde_dt
  756. /usr/dt/lib/bindings/ibm 0444 lib/Xm/bindings/ibm file bin bin di---- 378 cde_dt
  757. /usr/dt/lib/bindings/intergraph 0444 lib/Xm/bindings/intergraph file bin bin di---- 378 cde_dt
  758. /usr/dt/lib/bindings/intergraph17 0444 lib/Xm/bindings/intergraph17 file bin bin di---- 378 cde_dt
  759. /usr/dt/lib/bindings/megatek 0444 lib/Xm/bindings/megatek file bin bin di---- 378 cde_dt
  760. /usr/dt/lib/bindings/motorola 0444 lib/Xm/bindings/motorola file bin bin di---- 378 cde_dt
  761. /usr/dt/lib/bindings/ncr_at 0444 lib/Xm/bindings/ncr_at file bin bin di---- 378 cde_dt
  762. /usr/dt/lib/bindings/ncr_vt 0444 lib/Xm/bindings/ncr_vt file bin bin di---- 378 cde_dt
  763. /usr/dt/lib/bindings/sgi 0444 lib/Xm/bindings/sgi file bin bin di---- 378 cde_dt
  764. /usr/dt/lib/bindings/siemens_9733 0444 lib/Xm/bindings/siemens_9733 file bin bin di---- 378 cde_dt
  765. /usr/dt/lib/bindings/siemens_wx200 0444 lib/Xm/bindings/siemens_wx200 file bin bin di---- 378 cde_dt
  766. /usr/dt/lib/bindings/sony 0444 lib/Xm/bindings/sony file bin bin di---- 378 cde_dt
  767. /usr/dt/lib/bindings/sun 0444 lib/Xm/bindings/sun file bin bin di---- 378 cde_dt
  768. /usr/dt/lib/bindings/tek 0444 lib/Xm/bindings/tek file bin bin di---- 378 cde_dt
  769. /usr/dt/config/Xsession.d/0040.xmbind 0444 osf/xmbind/0040.xmbind file bin bin di---- 378 cde_dt
  770. /usr/dt/examples 0444 /usr/dt/share/examples sym_link bin bin di---- 378 cde_dt
  771. EOF
  772. }
  773. HandleOption()
  774. {
  775. while [ $# -ne 0 ]; do
  776. case $1 in
  777. -e) OPERATION="configure"
  778. shift;
  779. ;;
  780. -d) OPERATION="deconfigure"
  781. shift;
  782. ;;
  783. -v) OPERATION="verify"
  784. shift;
  785. ;;
  786. -s) OPERATION="size"
  787. shift;
  788. ;;
  789. esac
  790. done
  791. }
  792. doDttermTerminfo()
  793. {
  794. if [ -f $DT_TOP/config/dtterm.ti ]
  795. then
  796. tic $DT_TOP/config/dtterm.ti
  797. if [ -f /usr/lib/terminfo/d/dtterm ]
  798. then
  799. chown bin /usr/lib/terminfo/d/dtterm
  800. chgrp bin /usr/lib/terminfo/d/dtterm
  801. chmod 444 /usr/lib/terminfo/d/dtterm
  802. else
  803. echo "Unable to compile $DT_TOP/config/dtterm.ti"
  804. fi
  805. else
  806. echo "Unable to find $DT_TOP/config/dtterm.ti"
  807. fi
  808. }
  809. #############################################################################
  810. #
  811. # Main Body
  812. #
  813. ##############################################################################
  814. PRODUCT=CDE
  815. FILESET=CDE-RUN
  816. DT_TOP=/usr/dt
  817. DT_CONFIG_TOP=/etc/dt
  818. DT_TEMP_TOP=/var/dt
  819. ROOT=/
  820. DO_CONFIGURATION=""
  821. retval=0
  822. APPCONFIG=appconfig
  823. APPCONFIG_DIRS="appmanager help icons types"
  824. PRINTERS=""
  825. DEFAULT_PRINTER="DtPrint"
  826. HandleOption $*
  827. if [ "$OPERATION" = "configure" ]
  828. then
  829. echo "Configuring for CDE-RUN..."
  830. #
  831. # create the /var/dt directory
  832. #
  833. if [ ! -d $DT_TEMP_TOP/$APPCONFIG/appmanager ]
  834. then
  835. mkdir -p $DT_TEMP_TOP/$APPCONFIG/appmanager
  836. fi
  837. cd $DT_TEMP_TOP
  838. mv $APPCONFIG/appmanager .hidden-appmanager
  839. chmod -R 755 *
  840. chmod 755 .hidden-appmanager
  841. chown -R bin *
  842. chgrp -R bin *
  843. mv .hidden-appmanager $APPCONFIG/appmanager
  844. chmod 755 .
  845. chown bin .
  846. chgrp bin .
  847. #
  848. # create the /etc/dt and its config directory
  849. #
  850. umask 022
  851. if [ ! -d $DT_CONFIG_TOP ]
  852. then
  853. mkdir -p $DT_CONFIG_TOP
  854. chmod 755 $DT_CONFIG_TOP
  855. fi
  856. if [ ! -d $DT_CONFIG_TOP/config ]
  857. then
  858. mkdir -p $DT_CONFIG_TOP/config
  859. fi
  860. CreateAppConfigDirectory
  861. #
  862. # ConfigurePrintersDir
  863. #
  864. env LANG=C /usr/dt/bin/dtprintinfo -populate
  865. #
  866. # Configure Xsession.d
  867. #
  868. cd $DT_CONFIG_TOP/config
  869. if [ ! -d Xsession.d ]
  870. then
  871. mkdir Xsession.d
  872. fi
  873. cd $DT_CONFIG_TOP
  874. chmod -R 755 *
  875. FixInetdDotConf
  876. FixEtcRpc
  877. # After adding the Calendar Manager to the inetd service list, the inet
  878. # daemon needs to reread its configuration.
  879. /etc/inetd -c
  880. doDttermTerminfo
  881. elif [ "$OPERATION" = "deconfigure" ]
  882. then
  883. echo "de-Configuring CDE-RUN..."
  884. /etc/inetd -k
  885. KillIt "rpc.cmsd"
  886. /etc/inetd
  887. UnfixInetdDotConf
  888. UnfixEtcRpc
  889. # After removing the Calendar Manager from the inetd service list, the
  890. # inet daemon needs to reread its configuration.
  891. /etc/inetd -c
  892. rm -f /usr/lib/terminfo/d/dtterm
  893. rm -rf $DT_TEMP_TOP/*
  894. RemoveRunFiles
  895. VerifyInstalledFiles
  896. elif [ "$OPERATION" = "verify" ]
  897. then
  898. VerifyInstalledFiles
  899. fi
  900. return $retval