From owner-freebsd-ports@FreeBSD.ORG Sat Nov 14 07:54:20 2009 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05865106566B for ; Sat, 14 Nov 2009 07:54:20 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id ACD288FC16 for ; Sat, 14 Nov 2009 07:54:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codelabs.ru; s=two; h=Date:From:To:Cc:Subject:Message-ID: Reply-To:References:MIME-Version:Content-Type:In-Reply-To: Sender; bh=JWvh+pv0DCY4sjNHfGjktks7muFFDDEceV0VTHD0bdA=; b=gi559 WXy6lFyJFmoY8H1o9xdjLCQnfORuxpMkrpYMcTd20ew4aar7HTakvvuUgnvU3Fvq tPkMEAfEaJ8rarboNJfSIJOIMQmeREjq+IphjTZ3CnIeMdaFQuCWxAtDEp0e43dA EC0Z6FuwAndJm4+SSaJM6I8R5IlSpD5BcgChsWII23n2w/YPUm/VVA7ejfi+8/is T7xu32e+nArkzPjuX1C3dSqJpT9l5iSo5P2BgzNMIVWLO1r/nvTQOwrH8q9qM6Tk TvpY+ewsnldNVhK3GlgRLS1yGgAJ+SIa5a/wAJolQBW6U9wuvOMB+2fhdAZd8rFk MnyS06cRrAewEUAXg== Received: from shadow.codelabs.ru (cdma-92-36-69-228.msk.skylink.ru [92.36.69.228]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1N9DSb-0008H2-05; Sat, 14 Nov 2009 10:54:18 +0300 Date: Sat, 14 Nov 2009 10:54:16 +0300 From: Eygene Ryabinkin To: Dmitry Marakasov Message-ID: References: <20091114040417.GA66462@hades.panopticon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: rea-fbsd@codelabs.ru Cc: Rainer Hurling , freebsd-ports@FreeBSD.org Subject: Re: Getting MASTER_SITES for sourceforge ports more easily X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rea-fbsd@codelabs.ru List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Nov 2009 07:54:20 -0000 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 {_.-``-' {_/ #