Date: Thu, 13 Jul 2000 09:05:03 -0700 (PDT) From: "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net> To: jeff@mountin.net (Jeffrey J. Mountin) Cc: stable@FreeBSD.ORG Subject: Re: NOUUCP knob MFC? Message-ID: <200007131605.JAA12677@gndrsh.dnsmgr.net> In-Reply-To: <4.3.2.20000713094618.00abdf00@mixcom.com> from "Jeffrey J. Mountin" at "Jul 13, 2000 09:55:26 am"
next in thread | previous in thread | raw e-mail | index | archive | help
>
> 'Twas commited to -current back on 3/20 and has yet to be MFC'd. So long I
> forgot. Would be nice before 4.1R. 8-)
>
>
> Forgot to re-hack a makefile and subsequent bitten during a buildworld when
> the directories didn't exist, which also begs a question:
>
> Can mtree deal with 'if' statements?
No, but cpp or m4 can, ahhh..heck... just use unifdef:
unifdef -DNOUUCP <BSD.root.dist | mtree -deU -f - -p ${DESTDIR}/root
unifdef -DNOUUCP <BSD.usr.dist | mtree -deU -f - -p ${DESTDIR}/usr
...
Then you can sprinkle #ifdef/#ifndef/#else/#endif around what
should/should not be needed, ie:
#ifndef NOUUCP
uucp uname=uucp gname=uucp mode=0770
..
#endif
> Simple enough to blow away a
> directory or modify the files, but it would be cleaner if the knobs would
> be able to modify mtree's behavior.
Agreed... and rather then add yet another feature to mtree use the
small but eligant tools already provided.
--
Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007131605.JAA12677>
