home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / comm / revrdist.sit / RevRdist / resources / RevRdist.r < prev    next >
Encoding:
Text File  |  1990-08-23  |  12.9 KB  |  768 lines  |  [TEXT/KAHL]

  1. /QUIT
  2. /NOSCROLL
  3. ::RevRdist.╣.rsrc
  4. ????????
  5.  
  6.  
  7. TYPE STR 
  8. Preferences,12100        ;; STR_PREFS Name of the prefs file
  9. RevRdist Prefs
  10.  
  11. TYPE STR 
  12. Directives file,12101    ;; STR_DISTF Path to default directives file
  13. DistFile
  14.  
  15. TYPE STR 
  16. Server zone,12102
  17.  
  18.  
  19. TYPE STR 
  20. Server name,12103        ;; STR_SRVR AppleShare name of server node
  21. Server
  22.  
  23. TYPE STR 
  24. User name,12104            ;; STR_USER User login name on server node
  25.  
  26.  
  27. TYPE STR 
  28. Password,12105            ;; STR_PASS Password for user on server
  29.  
  30.  
  31. TYPE STR 
  32. Server volume,12106        ;; STR_MASTF Path to server comparison folder
  33. AppleShare:Clients:Master:
  34.  
  35. TYPE STR 
  36. "Junk" folder,12107        ;; STR_JUNKF Path to folder to hold stray files
  37. Lost & found            ;; prior to purging them
  38.  
  39. TYPE STR 
  40. Junk suffix,12108        ;; STR_JUNKSUF Suffix to append to junk names when
  41. .old                    ;; name conflicts with something moving to junk
  42.  
  43. TYPE STR 
  44. Anonymous document name,12109    ;; STR_UNTITLED
  45. <Untitled>
  46.  
  47. TYPE STR 
  48. SFPutFile prompt,12110    ;; STR_PSAVE
  49. Save preferences as:
  50.  
  51. TYPE Long = GNRL
  52. Running interval,12100    ;; How often to run, seconds
  53. .L
  54. 82800                    ;; every 23 hours (once a day)
  55.  
  56. TYPE Long = GNRL
  57. Junking params,12101    ;; How long to keep "Junk" files
  58. .L
  59. 86400                    ;; min of one day
  60. 604800                    ;; max of a week
  61. 5000000                    ;; threshold is 5 Meg
  62.  
  63. TYPE Long = GNRL
  64.     ,12102                ;; Initial value for debugging Flags
  65. .H
  66. 0000 002B                ;; Echo, List-only, Verbose, Debug dialog
  67.  
  68.  
  69. TYPE STR#                ;; Error message texts
  70.     ,12100
  71. 34
  72. When ^0 called ^1, the system returned error ^2 
  73. Problems with ^0.  Error ^1
  74. Quitting per user request
  75. Out of memory in ^0 (hint: ^1)
  76. Internal error: bad dispatcher request/result ^1 in ^0
  77. Internal error: bad dispatcher state in ^0: ^1
  78. Cannot locate distribution directives file: ^0
  79. Syntax error(s) in directives file 
  80. Bad prefix character in line 
  81. Missing file/folder name in line 
  82. Illegal file/folder name in line 
  83. Missing action list in line 
  84. Unrecognized action option in line 
  85. Bad file TYPE(CREATOR) specification 
  86. Garbage at end of line 
  87. Internal error: corrupt dist_node at end of folder mark ^0: ^1
  88. Internal error: corrupt dist_node tree ^0: ^1
  89. First entry in directives file must be folder
  90. Directives file has unmatched folder entries
  91. Preferences file (^0) missing or corrupt
  92. No preferences file found - should defaults be used?
  93. Cannot determine which volume to update
  94. Printing of control files not supported - open instead?
  95. Sorry, ^0 requires the Hierarchical File System
  96. Sorry, ^0 requires HFS volumes.  ^1 is MFS.
  97. Updates disabled.  Continue, but only list actions?
  98. Cannot find master folder (^0)
  99. Must have "See files" and "See folders" access to master folder (^0)
  100. Cannot open "Junk" folder (^0)
  101. No access to folder (^0)
  102. Internal error: name too long in ^0 (^1)
  103. Bad or missing "junk" folder STR resource
  104. Cannot save preferences to ^0: wrong file type
  105. Volume ^0 missing ^1.  It might not boot.
  106.  
  107.  
  108. TYPE STR#                ;; Activity message texts
  109.     ,12101                ;; LST_STR
  110. 20
  111. When ^0 called ^1, the system returned error ^2
  112. Problems with ^0.  Error ^1
  113. Skipping emptying of junk folder (^0)
  114. Emptying junk folder (^0)
  115. Working on ^0
  116. Done with ^0
  117. Would create folder ^0
  118. Ignoring ^0
  119. Missing from server: ^0
  120. Skipping junking of ^0
  121. Moving ^0 to junk folder
  122. Copying ^0 byte file ^1 to ^2
  123. Discarding contents of folder ^0
  124. Discarding ^0
  125. Don't know what to do with ^0
  126. No access to folder (^0)
  127. Updating Finder info for ^0
  128. Too many copies of "^0" in junk folder
  129. Setting Blessed folder
  130. RevRdist complete
  131.  
  132. TYPE STR#                ;; System file/folder names
  133. Blessed folder names,12102
  134. 3
  135. System Folder
  136. System
  137. Finder
  138.  
  139. INCLUDE syserrs.rsrc
  140.  
  141. TYPE DITL                ;; ----- Status dialog list
  142.     ,12101
  143. 7
  144.  
  145. button                    ;; STS_PAUSE
  146. 124 188 144 258
  147. Pause
  148.  
  149. button                    ;; STS_CANCEL
  150. 124 40 144 110
  151. Stop
  152.  
  153. button                    ;; STS_CONT
  154. 124 336 144 401
  155. Continue
  156.  
  157. staticText disabled        ;; STS_STATUS
  158. 85 3 117 419
  159.  
  160.  
  161. staticText disabled        ;; STS_WAIT
  162. 5 188 45 388
  163. Bringing hard disk up to date ╔ please be patient.
  164.  
  165. staticText disabled        ;; STS_REBOOT
  166. 55 188 75 388
  167. ( Will reboot when done. )
  168.  
  169. picItem disabled        ;; STS_PICT
  170. 3 3 65 172
  171. 12100
  172.  
  173. INCLUDE Dialog Picts
  174.  
  175.  
  176. TYPE DITL                ;; ----- Preferences dialog list
  177.     ,12104
  178. 24
  179.  
  180. button                    ;; PRF_GO
  181. 272 364 292 424
  182. Go !
  183.  
  184. button                    ;; PRF_CANCEL
  185. 272 280 292 340
  186. Cancel
  187.  
  188. staticText disabled
  189. 8 8 24 200
  190. AppleTalk zone
  191.  
  192. editText                ;; PRF_ZONE
  193. 8 208 24 424
  194.  
  195.  
  196. staticText disabled
  197. 32 8 48 200
  198. AppleShare server
  199.  
  200. editText                ;; PRF_SRVR
  201. 32 208 48 424
  202. Server
  203.  
  204. staticText disabled
  205. 56 8 72 200
  206. AppleShare username
  207.  
  208. editText                ;; PRF_USER
  209. 56 208 72 424
  210.  
  211.  
  212. staticText disabled
  213. 80 8 96 200
  214. Password
  215.  
  216. editText                ;; PRF_PASS
  217. 80 208 96 424
  218.  
  219.  
  220. staticText disabled
  221. 104 8 120 200
  222. Distribution file
  223.  
  224. editText                ;; PRF_DISTF
  225. 104 208 120 424
  226. DistFile
  227.  
  228. staticText disabled
  229. 128 8 144 200
  230. Master folder
  231.  
  232. editText                ;; PRF_MASTF
  233. 128 208 144 424
  234. AppleShare:Clients:Master:
  235.  
  236. staticText disabled
  237. 152 8 168 200
  238. "Junk" folder
  239.  
  240. editText                ;; PRF_JUNKF
  241. 152 208 168 424
  242. Lost & found
  243.  
  244. staticText disabled
  245. 176 8 192 200
  246. Update interval
  247.  
  248. editText                ;; PRF_FREQ
  249. 176 208 192 424
  250.  
  251.  
  252. staticText
  253. 200 8 216 200
  254. "Junk" lifetimes - minimum
  255.  
  256. editText                ;; PRF_JMIN
  257. 200 208 216 424
  258.  
  259.  
  260. staticText disabled
  261. 224 128 240 200
  262. maximum
  263.  
  264. editText                ;; PRF_JMAX
  265. 224 208 240 424
  266.  
  267.  
  268. staticText disabled
  269. 248 8 264 200
  270. Disk space threshold
  271.  
  272. editText                ;; PRF_DMIN
  273. 248 208 264 424
  274.  
  275.  
  276.  
  277. TYPE DITL                ;; ----- Warning alert
  278.     ,12105
  279. 3
  280.  
  281. button                    ;; ALRT_OKAY
  282. 88 160 108 220
  283. Okay
  284.  
  285. button                    ;; ALRT_CANCEL
  286. 88 256 108 316
  287. Cancel
  288.  
  289. staticText disabled        ;; ALRT_TEXT
  290. 1 64 84 344
  291. ^3
  292.  
  293.  
  294. TYPE DITL                ;; ----- Panic alert
  295.     ,12106
  296. 3
  297.  
  298. button disabled
  299. 20000 20000 20020 20060
  300. Okay
  301.  
  302. button
  303. 88 256 108 316
  304. Okay
  305.  
  306. staticText disabled
  307. 1 64 84 344
  308. ^3
  309.  
  310. TYPE DITL                ;; ----- Debug flags dialog
  311.     ,12107
  312. 8
  313.  
  314. button
  315. 167 364 187 424
  316. Okay
  317.  
  318. button
  319. 167 240 187 300
  320. Save
  321.  
  322. CheckBox                ;; DB_xxx values
  323. 0 8 21 202
  324. Echo control file as read
  325.  
  326. CheckBox
  327. 0 216 21 410
  328. List only, don't do
  329.  
  330. CheckBox
  331. 24 8 45 202
  332. Startup application
  333.  
  334. CheckBox
  335. 24 216 45 410
  336. Verbose
  337.  
  338. CheckBox
  339. 48 8 69 202
  340. Settings locked
  341.  
  342. CheckBox
  343. 48 216 69 410
  344. Debug dialog
  345.  
  346.  
  347. TYPE DITL                ;; ----- About box
  348.     ,12108
  349. 5
  350.  
  351. button
  352. 176 356 200 420
  353. Okay
  354.  
  355. userItem disabled
  356. 8 320 198 336
  357.  
  358. userItem disabled
  359. 8 8 198 318
  360.  
  361. iconItem disabled
  362. 40 372 72 404
  363. 128
  364.  
  365. staticText disabled
  366. 74 368 90 416
  367. RevRdist
  368.  
  369.  
  370. TYPE DITL                ;; ----- Save file alert
  371.     ,12109
  372. 4
  373.  
  374. button
  375. 80 10 100 70
  376. Yes
  377.  
  378. button
  379. 120 10 140 70
  380. No
  381.  
  382. button
  383. 120 95 140 155
  384. Cancel
  385.  
  386. staticText disabled
  387. 5 74 110 262
  388. Save ^0 before closing?
  389.  
  390.  
  391. TYPE DLOG
  392. Status,12101
  393. Status
  394. 40 40 192 478
  395. invisible noGoAway
  396. 3
  397. 1                        ;; WIND_STATUS
  398. 12101
  399.  
  400. TYPE WIND
  401. Activity,12102
  402. Activity
  403. 180 24 330 424
  404. invisible goAway
  405. 8
  406. 2                        ;; WIND_ACTIVITY
  407.  
  408. TYPE WIND
  409. Errors,12103
  410. Errors
  411. 60 48 140 400
  412. invisible goAway
  413. 8
  414. 3                        ;; WIND_ERRORS
  415.  
  416. TYPE DLOG
  417. Preferences,12104
  418. Preferences
  419. 40 40 342 472
  420. invisible goAway
  421. 16
  422. 4                        ;; WIND_PREF
  423. 12104
  424.  
  425. TYPE ALRT
  426. Warning,12105            ;; ALERT_WARN
  427. 46 82 162 432
  428. 12105
  429. DDDD
  430.  
  431. TYPE ALRT
  432. Panic,12106                ;; ALERT_PANIC
  433. 46 82 162 432
  434. 12106
  435. DDDD
  436.  
  437. TYPE DLOG
  438. Debug flags,12107
  439. Debug flags
  440. 46 44 246 474
  441. GoAway
  442. 16
  443. 7                        ;; WIND_DFLAGS
  444. 12107
  445.  
  446.  
  447. TYPE DLOG
  448. About,12108
  449. About RevRdist
  450. 40 40 248 478
  451. invisible
  452. 1
  453. 8                        ;; WIND_ABOUT
  454. 12108
  455.  
  456.  
  457. TYPE ALRT
  458. Save file,12109            ;; ALERT_SAVE
  459. 100 124 248 388
  460. 12109
  461. 5554
  462.  
  463.  
  464. TYPE MENU
  465.     ,1
  466. \14
  467. About RevRdist...
  468. (-
  469.  
  470. TYPE MENU
  471.     ,2
  472. File
  473. Open ╔ /O
  474. Save /S
  475. Save As ╔
  476. Quit /Q
  477.  
  478. TYPE MENU
  479.     ,3
  480. Edit
  481. Undo /Z
  482. (-
  483. Cut /X
  484. Copy /C
  485. Paste /V
  486. Clear
  487.  
  488. TYPE MENU
  489.     ,4
  490. Windows
  491. Status /1
  492. Activity /2
  493. Errors /3
  494. Preferences ╔ /4
  495.  
  496. TYPE MBAR = GNRL
  497.     ,12100
  498. .I
  499. 4
  500. .I
  501. 1 2 3 12104
  502.  
  503.  
  504. TYPE BNDL
  505.     ,128
  506. Dist 0
  507. ICN#
  508. 0 128 1 129    2 130 3 131
  509. FREF
  510. 0 128 1 129 2 130 3 131
  511.  
  512. TYPE FREF            ;; ref for self
  513.     ,128
  514. APPL 0
  515.  
  516. TYPE FREF            ;; ref for distfile
  517.     ,129
  518. TEXT 1
  519.  
  520. TYPE FREF            ;; ref for prefs file TYPE_PREF
  521.     ,130
  522. RDsp 2
  523.  
  524. TYPE FREF            ;; ref for INIT file
  525.     ,131
  526. INIT 3
  527.  
  528.  
  529. TYPE vers = GNRL    ;; version stuff
  530.     ,1 (32)
  531. .H
  532. 0120 6010 0000        ;; xxyz 60ww for version xx.y.zbww
  533. .P
  534. 1.2b10
  535. .P
  536. 1.2b10, Dale Talcott, Purdue University, 1990
  537.  
  538. INCLUDE Version.info
  539.  
  540. TYPE Dist = GNRL
  541.     ,0
  542. .P
  543. RevRdist 1.2b10, August 23, 1990
  544.  
  545.  
  546. TYPE ICN# = GNRL
  547.     ,128 (32)
  548. .H
  549. 0001 0000 0002 9fe0
  550. 0004 5030 0008 3028
  551. 0010 103c 07a0 0804
  552. 187f 8404 1000 8204
  553. 1000 8104 1000 8204
  554. 1000 8404 1000 8804
  555. 1000 9004 1000 b004
  556. 1000 d004 ffff ffff
  557. 4000 0002 3fff fffc
  558. 0000 8000 0000 8000
  559. 0000 8000 0000 8000
  560. 0002 a000 0001 c000
  561. 0000 8000 ffff ffff
  562. 8000 0001 8000 00e1
  563. 8000 0001 8000 0001
  564. ffff ffff 0000 0000
  565. 0001 0000 0003 9fe0
  566. 0007 dff0 000f fff8
  567. 001f fffc 07bf fffc
  568. 1fff fffc 1fff fffc
  569. 1fff fffc 1fff fffc
  570. 1fff fffc 1fff fffc
  571. 1fff fffc 1fff fffc
  572. 1fff fffc ffff ffff
  573. 7fff fffe 3fff fffc
  574. 0000 8000 0000 8000
  575. 0000 8000 0000 8000
  576. 0002 a000 0001 c000
  577. 0000 8000 ffff ffff
  578. ffff ffff ffff ffff
  579. ffff ffff ffff ffff
  580. ffff ffff 0000 0000
  581.  
  582.  
  583. TYPE ICN# = GNRL
  584.     ,129 (32)
  585. .H
  586. ffff ffc0 8000 0060 8002 0050 8005 0048
  587. 8008 bf44 83d0 61c2 867f a17f 8400 91e1
  588. 8400 8821 8400 8421 8400 8421 8400 8821
  589. 8400 9021 8400 a021 8400 e021 9fff fff9
  590. 9000 0009 8fff fff1 8000 8001 8000 8001
  591. 8000 8001 8000 8001 8002 a001 8001 c001
  592. 8000 8001 bfff fffd a000 00e5 a000 0005
  593. bfff fffd 8000 0001 ffff ffff 0000 0000
  594. ffff ffc0 ffff ffe0 ffff fff0 ffff fff8
  595. ffff fffc ffff fffe ffff ffff ffff ffff
  596. ffff ffff ffff ffff ffff ffff ffff ffff
  597. ffff ffff ffff ffff ffff ffff ffff ffff
  598. ffff ffff ffff ffff ffff ffff ffff ffff
  599. ffff ffff ffff ffff ffff ffff ffff ffff
  600. ffff ffff ffff ffff ffff ffff ffff ffff
  601. ffff ffff ffff ffff ffff ffff 0000 0000
  602.  
  603. TYPE ICN# = GNRL
  604.     ,130 (32)
  605. .H
  606. 0001 0000 0002 9fe0
  607. 0004 5030 0008 3028
  608. 0010 103c 07a0 0804
  609. 187f 8404 1000 8204
  610. 1000 8104 1000 8204
  611. 1000 8404 1000 8804
  612. 1000 9004 1000 b004
  613. 1000 d004 ffff ffff
  614. 4000 0002 3fff fffc
  615. 0000 8000 0100 8000
  616. ff80 8000 ffc0 8000
  617. ff82 a000 0101 c000
  618. 0000 8000 ffff ffff
  619. 8000 0001 8000 00e1
  620. 8000 0001 8000 0001
  621. ffff ffff 0000 0000
  622. 0001 0000 0003 9fe0
  623. 0007 dff0 000f fff8
  624. 001f fffc 07bf fffc
  625. 1fff fffc 1fff fffc
  626. 1fff fffc 1fff fffc
  627. 1fff fffc 1fff fffc
  628. 1fff fffc 1fff fffc
  629. 1fff fffc ffff ffff
  630. 7fff fffe 3fff fffc
  631. 0000 8000 0100 8000
  632. ff80 8000 ffc0 8000
  633. ff82 a000 0101 c000
  634. 0000 8000 ffff ffff
  635. ffff ffff ffff ffff
  636. ffff ffff ffff ffff
  637. ffff ffff 0000 0000
  638.  
  639. TYPE ICN# = GNRL
  640.     ,131 (32)            ;; RSRC_INITICON
  641. .H
  642. 0000 0000 07ff ffe0
  643. 0800 0010 0800 0010
  644. 08ff ff10 0900 0090
  645. 0900 0090 0901 7890
  646. 091a c490 0927 4490
  647. 0921 2490 0921 4490
  648. 097f fe90 0901 0090
  649. 097f fe90 0940 1290
  650. 097f fe90 0900 0090
  651. 08ff ff10 0800 0010
  652. 0800 0010 0800 0010
  653. 0800 ff10 0800 0010
  654. 0800 0010 0800 0010
  655. 0800 0010 07ff ffe0
  656. 0400 0020 0400 0020
  657. 0400 0020 07ff ffe0
  658. 0000 0000 07ff ffe0
  659. 0fff fff0 0fff fff0
  660. 0fff fff0 0fff fff0
  661. 0fff fff0 0fff fff0
  662. 0fff fff0 0fff fff0
  663. 0fff fff0 0fff fff0
  664. 0fff fff0 0fff fff0
  665. 0fff fff0 0fff fff0
  666. 0fff fff0 0fff fff0
  667. 0fff fff0 0fff fff0
  668. 0fff fff0 0fff fff0
  669. 0fff fff0 0fff fff0
  670. 0fff fff0 0fff fff0
  671. 0fff fff0 07ff ffe0
  672. 07ff ffe0 07ff ffe0
  673. 07ff ffe0 07ff ffe0
  674.  
  675. TYPE ICON = GNRL    ;; same as first part of ICN# 128
  676.     ,128
  677. .H
  678. 0001 0000 0002 9fe0
  679. 0004 5030 0008 3028
  680. 0010 103c 07a0 0804
  681. 187f 8404 1000 8204
  682. 1000 8104 1000 8204
  683. 1000 8404 1000 8804
  684. 1000 9004 1000 b004
  685. 1000 d004 ffff ffff
  686. 4000 0002 3fff fffc
  687. 0000 8000 0000 8000
  688. 0000 8000 0000 8000
  689. 0002 a000 0001 c000
  690. 0000 8000 ffff ffff
  691. 8000 0001 8000 00e1
  692. 8000 0001 8000 0001
  693. ffff ffff 0000 0000
  694.  
  695. TYPE TEXT = GNRL
  696. About text, 12100
  697. .S
  698. RevRdist\0D\0D
  699. .S
  700. By Dale Talcott\0D
  701. .S
  702. Purdue University Computing Center\0D
  703. .S
  704. aeh@cc.purdue.edu\0D\0D
  705. .S
  706. RevRdist is a ╥demand-pull╙ Macintosh equivalent of the Berkeley Unix ++
  707. program rdist╩(1).  
  708. .S
  709. Both programs exist to keep copies of files ++
  710. synchronized among systems in a network.  
  711. .S
  712. Where rdist╩normally runs on a source system and distributes updated ++
  713. files to destination systems, RevRdist reverses this: 
  714. .S
  715. RevRdist runs on a client and copies information from the server ++
  716. system.\0D\0D
  717. .S
  718. The intended environment for RevRdist is a group of Mac workstations, ++
  719. each with a local hard disk, connected to an AppleShare server.  
  720. .S
  721. The server maintains the ╥master╙ copies of folders and files.  
  722. .S
  723. Client workstations have local copies of (a subset of) these files, ++
  724. as well as additional files which may be unique to the workstation.  
  725. .S
  726. When RevRdist is run, it compares the client copies of folders and ++
  727. files against the master copies.  
  728. .S
  729. Then, based on options and criteria specified in a ++
  730. distribution control file, RevRdist does the following:\0D\0D
  731. .S
  732. Ñ  Discards unwanted files/folders from the client.\0D
  733. .S
  734. Ñ  Moves files/folders to a ╥junk╙ folder on the client, ++
  735. from which they are discarded later.\0D
  736. .S
  737. Ñ  Copies files/folders from the server to the client.\0D
  738. .S
  739. Ñ  Makes client files invisible from the Finder.\0D
  740. .S
  741. Ñ  Locks or unlocks client files.\0D
  742. .S
  743. Ñ  Sets the Finder window positions of client files/folders to ++
  744. match those of the master copies on the server.\0D
  745. .S
  746. \0D
  747. .S
  748. Actions can be specified explicitly for individual files or folders ++
  749. and default actions can be set on a per folder basis for contents ++
  750. of folders which have no explicit action.\0D
  751. .S
  752. \0D
  753. .S
  754. The THINK C source to RevRdist is released to the public domain.\0D ++
  755. Neither the author nor Purdue University is responsible for any ++
  756. consequences of the use of this software.\0D
  757. .S
  758. \0D
  759. .S
  760. Extensive use is made of the ╥TransSkel╙ and ╥TransDisplay╙ packages ++
  761. created and made available by Paul DuBois (dubois@primate.wise.edu).\0D
  762. .S
  763. \0D
  764. .S
  765. Thanks also to John O'Malley and the Mac Lab consultants for suggestions ++
  766. and testing.\0D
  767.  
  768.