home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1040 / Readme < prev   
Text File  |  1990-12-28  |  2KB  |  40 lines

  1. This "install" program is a perl script.  You need Larry Wall's perl v3 to run
  2. it.  You can get the latest version of perl via anonymous FTP from
  3. jpl-devvax.jpl.nasa.gov (128.149.8.43).  I highly recommend it.
  4.  
  5. I wrote "install" because even though our System V hosts have an "install"
  6. command, it has completely different options.  I wanted just one version of
  7. Makefiles for all of our machines and since I was familiar with the bsd version
  8. of "install", I wrote a script to emulate it.  It also works equally as well on
  9. our System V and BSD 4.[23] machines, and supports every option BSD does.
  10.  
  11. I've also added a couple of options and features.
  12.  
  13. The two additional command line options are "-r" to remove the target before
  14. installing the new one, and "-l" to do an "ll" after the installation is
  15. complete.  These are two changes to Makefiles I found myself making
  16. constantly.
  17.  
  18. The "-l" option of install requires that you have a "ll" command on every
  19. system.  On BSD systems that didn't come with an "ll" command, I installed the
  20. enclosed two line "ll" Bourne shell script in "/bin".  On our System V hosts, I
  21. installed the same script, but edited out the -g option (so the output looks
  22. the same).
  23.  
  24. I also added the ability to install files on multiple hosts with one command.
  25. You do this by specifying the target as "hostlist:target", where the "hostlist"
  26. is a list of hosts, separated with a plus sign.  "rsh" and "rcp" commands are
  27. used to perform the remote operations, but since rsh doesn't return the remote
  28. command's status, you can't really be sure each remote command is working
  29. okay.
  30.  
  31. In my Makefiles, I define the variable "HOST" to be a list of hosts or their
  32. nicknames that I want the files installed.  This works well because I can
  33. override the default hostlist by specifying an overriding "HOST=someotherhost"
  34. on the "make" command line when I want to.  See the "Makefile" in this
  35. directory for an example.
  36.  
  37.         Patrick Wolfe   (pat@kai.com, kailand!pat)
  38.         System Programmer/Operations Manager, Kuck & Associates, Inc.
  39.  
  40.