From owner-freebsd-ports Thu Sep 27 6: 6:45 2001 Delivered-To: freebsd-ports@freebsd.org Received: from ginsberg.uol.com.br (ginsberg.uol.com.br [200.231.206.26]) by hub.freebsd.org (Postfix) with ESMTP id 8259D37B41B for ; Thu, 27 Sep 2001 06:06:42 -0700 (PDT) Received: from 200.181.48.44 ([200.181.48.44]) by ginsberg.uol.com.br (8.9.1/8.9.1) with ESMTP id KAA16371 for ; Thu, 27 Sep 2001 10:04:33 -0300 (BRT) Received: (qmail 825 invoked by uid 1001); 27 Sep 2001 13:06:42 -0000 From: "Mario Sergio Fujikawa Ferreira" Date: Thu, 27 Sep 2001 10:06:20 -0300 To: Maxim Sobolev Cc: Freebsd-ports@FreeBSD.org Subject: Re: review plz MASTER_SITES_n (ala OpenBSD) patch for bsd.port.mk Message-ID: <20010927100620.A765@exxodus.fedaykin.here> References: <20010923055224.A93855@exxodus.fedaykin.here> <20010923133030.K69123@curie.physics.purdue.edu> <3BB05FD4.3E235748@FreeBSD.org> <20010927015548.A21765@exxodus.fedaykin.here> <3BB2D2FF.B4742039@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3BB2D2FF.B4742039@FreeBSD.org>; from sobomax@FreeBSD.org on Thu, Sep 27, 2001 at 10:19:05AM +0300 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Sep 27, 2001 at 10:19:05AM +0300, Maxim Sobolev wrote: > > As I said in my original e-mail in this case you can do the following: > MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} ${MASTER_SITE_SOURCEFORGE:S/$/:a/} > http://another_site/:b > DISTFILES= fileA fileB:,a fileC:b > MASTER_SITE_SIBDIR= normal_place another_place:a > (please note that fileB actually has two postfixes - one empty, which should bring us > [MASTER_SITE_SOURCEFORGE, normal_place], and second is a, which will bring > [MASTER_SITE_SOURCEFORGE, another_place]) > > As you can see things are quite easy ;). I didn't know that with :S the $ symbol would match every word end. :) I thought it would only match the end of the whole variable. Interesting and simple. ;-) But as far as postfixing goes, I'd rather avoid the empty group and use a keyword such as DEFAULT. Better semantically. -- Mario S F Ferreira - UnB - Brazil - "I guess this is a signature." lioux at ( freebsd dot org | linf dot unb dot br ) flames to beloved devnull@someotherworldbeloworabove.org feature, n: a documented bug | bug, n: an undocumented feature To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message