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