[comp.unix.questions] simple make question

egsirer@phoenix.Princeton.EDU (Emin Gun Sirer) (05/26/90)

In article <4921@uceng.UC.EDU> schriste@uceng.UC.EDU (Steven V. Christensen) writes:
>I have a bunch of unix accts on many machines, and I want to keep all of
>the .cshrc, .login, etc... files in a subdir of one machine (the files
>can be different for different machines).

>I want it to be so that if I change the file "machinex.login", then that
>file gets sent to machine X as .login (via rcp - that part's not important).

	You can use rdist to do this. Rdist comes with 4.3 BSD and all you
have to do is to create a distfile with:

	step1:
	/u/you/machinex.login ->   you@machinex
					install .login ;
					notify you@machiney ;

Then include "machiney.blah.blah you" in .rhosts on machinex and give the
command rdist occassionally (You might want to include it in your .logout).
Rdist does everything, including time checking and all other kinds of funky
things you might ask from make. The man page gives some really good examples
of what you can do with it.

Hope you can find rdist on your site.

-------
Gun Sirer.
egsirer@phoenix.princeton.edu