[csw-maintainers] SAMPLECONF = $(sysconfdir)/foo\.conf issues
dam at opencsw.org
dam at opencsw.org
Wed Sep 23 12:26:28 CEST 2009
Hi Maciej,
> I tried a few combinations of "." and "\."; I then took a look at the
> output.
>
> 1.
> SAMPLECONF = $(sysconfdir)/cupsd\.conf\.CSW
> | perl -ane ' $F[1] = "cswcpsampleconf" if ( $F[2] =~
> m(^/etc/opt/csw/cupsd\.conf\\.CSW$) );
>
> Doesn't work.
>
> 2.
> SAMPLECONF = $(sysconfdir)/cupsd.conf.CSW
> | perl -ane ' $F[1] = "cswcpsampleconf" if ( $F[2] =~
> m(^/etc/opt/csw/cupsd.conf\.CSW$) );
>
> Does work (the class is being set).
>
> It doesn't seem quite right. If the value of SAMPLECONF is a regex,
> there should be no later backslash additions. If it's not a regex,
> backslashes should be added to all the dots (or other special
> characters).
This was a bug. It should be regular expressions, so 1. is correct. The
bug was
introduced was I autodetected if the file has a .CSW-suffix or not. It is
fixed
now in r6425, please verify.
Thanks for the report!
-- Dago
More information about the maintainers
mailing list