home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 230.lha / BindNames / ReadMe < prev    next >
Text File  |  1989-04-05  |  3KB  |  70 lines

  1.  
  2.  
  3.         BindNames V1.0 by Dave Haynie
  4.  
  5.  
  6.     BindNames is a rather simple hack I came up with to solve the
  7. "Assign" problem.  Like most folks with large hard disks containing lots
  8. of different programs, my Startup-Sequence was starting to get full of
  9. Assign statements.  While that alone isn't necessarily enough to make
  10. most go out and write a program, I was starting to think of this as an
  11. inelegance.  Nearly every other new program I installed onto my system
  12. needed a new set of logical names, and so for every new program I ended
  13. up having to edit my Startup-Sequence.  I also had to pay attention to
  14. the ordering of Assignments, since obviously I couldn't base an
  15. assignment on one that hadn't been made yet.  The end result was that
  16. the Startup Sequence was getting rather ugly, with no sign of change on
  17. the immediate horizon. 
  18.  
  19.     Since problems should be solved by those who see them, I came up
  20. with BindNames.  BindNames is designed to do all of the logical name
  21. assignments you need at once.  It looks for any number of files in the
  22. directory "SYS:Names".  The format of such files is something like this
  23. (to quote my "SYS:Names/System" file):
  24.  
  25. BIN:    SYS:bin
  26. OS:    SYS:os
  27. C:     BIN:c
  28. COM:    BIN:Com
  29. L:     OS:L
  30. FONTS:    PATH:FD:Amiga,FD:PD,FD:PS,FD:Terms,FD:CityDesk
  31. FD:    OS:Fonts
  32. S:     OS:s
  33. DEVS:    OS:Devs
  34. LIBS:    OS:Libs
  35. ENV:    RAM:Env
  36. T:    RAM:T
  37.  
  38.     BindNames will read all name files before making any
  39. assignments, and it can figure out dependencies, so it doesn't matter
  40. how you order the names.  It will create directories that it can't find,
  41. such as RAM:Env and RAM:T in the above example, and it will generate
  42. warnings for name assignments that it can't resolve.  It also accepts
  43. several options, of the form:
  44.  
  45.     BindNames [SYSTEM device] [VERBOSE] [TEST]
  46.  
  47.     The SYSTEM device option causes BindNames to re-assign the SYS:
  48. name to the given device before searching for SYS:Names.  For example,
  49. my main system disk is called FH0:, but I boot from DH2: (sure sounds
  50. like A2090A madness to me too, but what can I say), so my
  51. Startup-Sequence says "BindNames >NIL: SYSTEM fh0:". 
  52.  
  53. The VERBOSE switch causes BindNames to list each name and equivalence
  54. as it runs.  The TEST switch does the same thing, but doesn't actually
  55. make the name assignments.
  56.  
  57.     Using BindNames, I've managed to get every single "Assign"
  58. command out of my Startup-Sequence.  And if I need to add a series of
  59. assignments for a new program, I can just create a SYS:Names file for
  60. that program.  That makes installing the program much easier, and also
  61. keeps all the logical names for a particular program in an obvious
  62. location, which makes modifying the system setup much simpler in the
  63. future. 
  64.  
  65.     BindNames is public domain, do with as you please.
  66.  
  67.  
  68.                     -Dave Haynie
  69.                      3/14/89
  70.