From owner-freebsd-ports@FreeBSD.ORG Wed Feb 8 13:42:15 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E946116A420 for ; Wed, 8 Feb 2006 13:42:15 +0000 (GMT) (envelope-from shaun@inerd.com) Received: from dione.picobyte.net (host-212-158-207-124.bulldogdsl.com [212.158.207.124]) by mx1.FreeBSD.org (Postfix) with SMTP id 5456243D4C for ; Wed, 8 Feb 2006 13:42:15 +0000 (GMT) (envelope-from shaun@inerd.com) Received: from charon.picobyte.net (charon.picobyte.net [IPv6:2001:4bd0:201e::fe03]) by dione.picobyte.net (Postfix) with ESMTP; Wed, 8 Feb 2006 13:42:11 +0000 (GMT) Date: Wed, 8 Feb 2006 13:42:11 +0000 From: Shaun Amott To: Dmitry Marakasov Message-ID: <20060208134210.GA688@picobyte.net> Mail-Followup-To: Dmitry Marakasov , freebsd-ports@freebsd.org References: <20060207003529.GA32317@hades.panopticon> <43E8A5DD.5000509@vonostingroup.com> <43E8ABB1.5020606@vonostingroup.com> <20060207230510.GA73898@hades.panopticon> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20060207230510.GA73898@hades.panopticon> User-Agent: Mutt/1.5.11 (FreeBSD i386) Cc: freebsd-ports@freebsd.org Subject: Re: USE_DOS2UNIX may be more powerful? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2006 13:42:16 -0000 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