Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Sep 2001 10:06:20 -0300
From:      "Mario Sergio Fujikawa Ferreira" <lioux@uol.com.br>
To:        Maxim Sobolev <sobomax@FreeBSD.org>
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>
In-Reply-To: <3BB2D2FF.B4742039@FreeBSD.org>; from sobomax@FreeBSD.org on Thu, Sep 27, 2001 at 10:19:05AM %2B0300
References:  <20010923055224.A93855@exxodus.fedaykin.here> <E15l7Nf-00072f-00@mx10.port.ru> <20010923133030.K69123@curie.physics.purdue.edu> <3BB05FD4.3E235748@FreeBSD.org> <20010927015548.A21765@exxodus.fedaykin.here> <3BB2D2FF.B4742039@FreeBSD.org>

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




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