USE_DOS2UNIX may be more powerful?
Shaun Amott
shaun at inerd.com
Wed Feb 8 05:42:16 PST 2006
On Wed, Feb 08, 2006 at 02:05:10AM +0300, Dmitry Marakasov wrote:
>
> Now, old syntax works as it did:
>
> USE_DOS2UNIX= foo/*.c bar/biz/*.h
>
> will convert all *.c files in ${WRKSRC}/foo/ and all *.h files in
> ${WRKSRC}/bar/baz/
>
> But, also now we can use
>
> USE_DOS2UNIX= *.c *.h
>
> To convert all *.c and *.h files in all subdirectories under ${WRKSRC}.
> For the case when we have many directories and cannot use
> USE_DOS2UNIX=YES as it'll corrupt sometring, I think it's the best
> solution.
>
But what if you need to convert just the files in the root directory of
$WRKSRC, without descending into subdirectories? Perhaps something like
this would be better:
USE_DOS2UNIX=yes
DOS2UNIX_GLOBS=*.c *.h
That would then maintain existing behaviour, and still provide the
extended functionality.
-Shaun
More information about the freebsd-ports
mailing list