Read only Source trees?

Chris Torek chris at mimsy.umd.edu
Thu Sep 13 18:44:35 AEST 1990


In article <26504 at mimsy.umd.edu> I wrote:
>	[on every machine that it to use /usr/src]
>	$ mkdir /usr/obj; find /usr/src/* -type d -print |
>	> sed 's,/usr/src/\(.*\),mkdir /usr/obj/\1\
>	> ln -s /usr/obj/\1 /usr/src/\1/obj,' | sh

Only the `mkdir' part of the sed need be done on every machine.  The
symlinks should only be made on the master source machine:  Change
the last two lines to

	> sed 's,/usr/src/\(.*\),mkdir /usr/obj/\1' | sh

(Incidentally, this will make more `obj' symlinks, and sometimes more
directories, than actually necessary.  <bsd.prog.mk> now has a
`make obj' that makes the symlinks.  The extra directories in /usr/obj
are probably not worth worrying about.)
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 405 2750)
Domain:	chris at cs.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.questions mailing list