On Mon, 18 Nov 2002, Matt Bernstein wrote:
> At 12:22 -0000 Philip Hazel wrote:
>
> >> > > Unfortunately ACLs in files are not allowed to have comments :-( so it's
> >> >m4 to the rescue ;)
> >> That's what the sendmail folks said..
> >Surely all you need is awk or sed (or maybe Perl)?
>
> I don't understand. I like my files in place with comments.
Oh, me too. I was merely trying to say that if somebody did want to keep
commented files and move them into place with comments stripped, you
don't need to learn m4; awk/sed/perl will do the job.
> Do I need to run "make" (or awk or..) every time I change my ACLs? That's
> a bit like running "newaliases"--if you can avoid it, so much the better!
Indeed, but in a controlled enviroment, where you probably also want to
run CVS or SCCS (to keep a handle on the changes), the standard way of
doing this is to write a single script that does everything for you:
check out
edit
test (if there's a way of testing for syntax etc)
check in
install - this is where you'd strip comments
However, I've noted the comment requirement on the Wish List.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.