home *** CD-ROM | disk | FTP | other *** search
/ Aminet 10 / aminetcdnumber101996.iso / Aminet / util / batch / BindNames36_19.lha / ReadMe < prev    next >
Text File  |  1995-11-05  |  4KB  |  107 lines

  1.  
  2.  
  3.         BindNames V2.0 by Dave Haynie
  4.         (Ver 36.19 modified for AmigaDOS 2.04+ By Robert Hardy)
  5.  
  6. BindNames is a rather simple hack I came up with to solve the "Assign"
  7. problem.  Like most folks with large hard disks containing lots of
  8. 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
  13. ended up having to edit my Startup-Sequence.  I also had to pay
  14. attention to the ordering of Assignments, since obviously I couldn't
  15. base an assignment on one that hadn't been made yet.  The end result
  16. was that the Startup Sequence was getting rather ugly, with no sign of
  17. change on the immediate horizon.
  18.  
  19. Since problems should be solved by those who see them, I came up with
  20. 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".  
  23.  
  24. The format of such files is:
  25.  
  26.     <Name>: <Path> [ADD|DEFER|PATH]
  27.  
  28.     If the first non-whitespace character is '#', '!' or  ';' the
  29.     rest of the line is treated as a comment.
  30.  
  31. To quote my "SYS:Names/System" file:
  32.  
  33.         ! System Assigns
  34.  
  35.         BIN:    SYS:bin
  36.         OS:    SYS:os
  37.         C:     BIN:c
  38.         COM:    BIN:Com
  39.         L:     OS:L
  40.         FONTS:    PATH:
  41.         FD:    OS:Fonts
  42.         S:     OS:s
  43.         DEVS:    OS:Devs
  44.         LIBS:    OS:Libs
  45.         LIBS:    sys:extras/Libs ADD
  46.         ENV:    RAM:Env
  47.         T:    RAM:T
  48.         BBS: 1500HS-Work:DLG DEFER
  49.  
  50. BindNames will read all name files before making any assignments, and
  51. it can figure out dependencies, so it doesn't matter how you order the
  52. names.  It will create directories that it can't find, such as RAM:Env
  53. and RAM:T in the above example, and it will generate warnings for name
  54. assignments that it can't resolve.  It also accepts several options,
  55. of the form:
  56.  
  57.     BindNames [F=FILE <name>] [N=NAMES <path>] [S=SYSTEM <path>]
  58.               [V=VERBOSE] [R=REMOVE] [T=TEST] 
  59.  
  60.         FILE    - allows you to specify a single BindNames file.
  61.  
  62.         NAMES   - allows you to specify the full path of the Names directory.
  63.  
  64.         SYSTEM  - causes BindNames to re-assign the SYS: to the given
  65.                   path before searching for SYS:Names.  For example, my
  66.                   main system disk is called FH0:, but I boot from DH2: 
  67.                   (sure sounds like A2090A madness to me too, but what 
  68.                   can I say), so my Startup-Sequence says 
  69.                   "BindNames >NIL:  SYSTEM fh0:".
  70.  
  71.         VERBOSE - causes BindNames to list each name and equivalence
  72.                   as it runs.  The TEST switch does the same thing, but 
  73.                   doesn't actually make the name assignments.
  74.  
  75.         REMOVE  - causes BindNames to remove instead of add.  When used
  76.                   with the FILE or NAMES keywords, can help avoid huge
  77.                   cluttered device lists.
  78.  
  79. Using BindNames, I've managed to get every single "Assign" command out
  80. of my Startup-Sequence.  And if I need to add a series of assignments
  81. for a new program, I can just create a SYS:Names file for that
  82. program.  That makes installing the program much easier, and also
  83. keeps all the logical names for a particular program in an obvious
  84. location, which makes modifying the system setup much simpler in the
  85. future.
  86.  
  87.     BindNames is public domain, do with as you please.
  88.  
  89.  
  90.                     -Dave Haynie
  91.                      3/14/89
  92.  
  93. PS:
  94.  
  95. V36.16 modified to handle new V36 Assign arguments DEFER, PATH and ADD.  
  96. Excluded *.bak when reading the Names directory.
  97. Added NAMES, REMOVE and FILE keyworks.
  98. Added Icon support.
  99.  
  100.     - Robert Hardy,  uucp: Robert_Hardy@tvinet.com
  101.       Sat Apr 16 1994
  102.  
  103.  
  104. V36.19 Added comment characters for assign files: '#', '!' or ';'
  105.  
  106.     RWH Mon Aug  7 1995
  107.