Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ames!dftsrv!mimsy!chris From: chris@mimsy.umd.edu (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: Read only Source trees? Message-ID: <26524@mimsy.umd.edu> Date: 13 Sep 90 08:44:35 GMT References: <26504@mimsy.umd.edu> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 19 In article <26504@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. 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@cs.umd.edu Path: uunet!mimsy!chris