Getting MASTER_SITES for sourceforge ports more easily
rhurlin at gwdg.de
Sat Nov 14 09:56:30 UTC 2009
On 14.11.2009 08:54 (UTC+1), Eygene Ryabinkin wrote:
> Sat, Nov 14, 2009 at 09:16:47AM +0300, Eygene Ryabinkin wrote:
>> The attached shell script should produce the MASTER_SITE_SUBDIR for the
>> SF-hosted ports for each URL given in the command-line.
> Inlining the script -- it was dropped by the Mailman:
> while [ -n "$1" ]; do
> echo "$1" | sed -Ee's%^htt(p|ps)://(sourceforge|sf)\.net/projects/(.*)/[^/]*/download$%MASTER_SITE_SUBDIR= \3%'
Isn't it something that should be mentioned in the porters handbook, for
example in chapter 5.4.7?
More information about the freebsd-ports