Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Feb 2006 13:42:11 +0000
From:      Shaun Amott <shaun@inerd.com>
To:        Dmitry Marakasov <amdmi3@mail.ru>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: USE_DOS2UNIX may be more powerful?
Message-ID:  <20060208134210.GA688@picobyte.net>
In-Reply-To: <20060207230510.GA73898@hades.panopticon>
References:  <20060207003529.GA32317@hades.panopticon> <43E8A5DD.5000509@vonostingroup.com> <b8a404110602070606s6a0df93ah@mail.gmail.com> <43E8ABB1.5020606@vonostingroup.com> <20060207230510.GA73898@hades.panopticon>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060208134210.GA688>