USE_DOS2UNIX may be more powerful?

Dmitry Marakasov amdmi3 at mail.ru
Wed Feb 8 06:43:50 PST 2006


* Shaun Amott (shaun at inerd.com) wrote:
> > 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?
USE_DOS2UNIX=	/*.c /*.h

> 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.
That makes it imposible to use globs along with find patterns.

-- 
Best regards,
 Dmitry                          mailto:amdmi3 at mail.ru


More information about the freebsd-ports mailing list