Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Nov 2009 10:54:16 +0300
From:      Eygene Ryabinkin <rea-fbsd@codelabs.ru>
To:        Dmitry Marakasov <amdmi3@amdmi3.ru>
Cc:        Rainer Hurling <rhurlin@gwdg.de>, freebsd-ports@FreeBSD.org
Subject:   Re: Getting MASTER_SITES for sourceforge ports more easily
Message-ID:  <sSZzhpalef%2Bk89UbiF6cxQKWpX8@7ANLw7WpNQUEViOFvqmcIRbmcl4>
In-Reply-To: <Bjngseb3osVLoQDmng7iYHzUzgw@7ANLw7WpNQUEViOFvqmcIRbmcl4>
References:  <20091114040417.GA66462@hades.panopticon> <Bjngseb3osVLoQDmng7iYHzUzgw@7ANLw7WpNQUEViOFvqmcIRbmcl4>

next in thread | previous in thread | raw e-mail | index | archive | help
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:
-----
#!/bin/sh

while [ -n "$1" ]; do
	echo "$1" | sed -Ee's%^htt(p|ps)://(sourceforge|sf)\.net/projects/(.*)/[^/]*/download$%MASTER_SITE_SUBDIR=	\3%'
	shift
done
-----
-- 
Eygene
 _                ___       _.--.   #
 \`.|\..----...-'`   `-._.-'_.-'`   #  Remember that it is hard
 /  ' `         ,       __.--'      #  to read the on-line manual
 )/' _/     \   `-_,   /            #  while single-stepping the kernel.
 `-'" `"\_  ,_.-;_.-\_ ',  fsc/as   #
     _.-'_./   {_.'   ; /           #    -- FreeBSD Developers handbook
    {_.-``-'         {_/            #



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?sSZzhpalef%2Bk89UbiF6cxQKWpX8>