From owner-svn-src-head@FreeBSD.ORG Sat Mar 19 23:17:31 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B02E1106564A; Sat, 19 Mar 2011 23:17:31 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (trout.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id 6DC578FC13; Sat, 19 Mar 2011 23:17:31 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 153FE58139; Sat, 19 Mar 2011 18:17:31 -0500 (CDT) X-Virus-Scanned: amavisd-new at icecube.wisc.edu Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (trout.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10030) with ESMTP id 8qYguNIo+J5M; Sat, 19 Mar 2011 18:17:31 -0500 (CDT) Received: from wanderer.tachypleus.net (unknown [76.210.65.155]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 6AEF358135; Sat, 19 Mar 2011 18:17:30 -0500 (CDT) Message-ID: <4D85398A.7020008@freebsd.org> Date: Sat, 19 Mar 2011 18:17:30 -0500 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110317 Thunderbird/3.1.9 MIME-Version: 1.0 To: Garrett Cooper References: <201103192306.p2JN6Inv037425@svn.freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r219788 - head/release X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2011 23:17:31 -0000 On 03/19/11 18:10, Garrett Cooper wrote: > On Sat, Mar 19, 2011 at 4:06 PM, Nathan Whitehorn > wrote: >> Author: nwhitehorn >> Date: Sat Mar 19 23:06:17 2011 >> New Revision: 219788 >> URL: http://svn.freebsd.org/changeset/base/219788 >> >> Log: >> Add support for checking out ports and doc trees from a CVS repository, >> in addition to CVSUP, and add support for alternate SVN roots for src. >> >> Requested by: jhb > > Although this seems good and all, wouldn't it make sense to split off > the pulling infrastructure into separate scripts so that someone could > have hooks to do: > > - pre-pull (create paths, whatever) > - pull > - post-pull (patch?) > > That way someone could choose any arbitrary SCM (git, hg, etc), > specify necessary configuration files, and apply local patches as > necessary. > Thanks, > -Garrett That's pretty much the point of having generate-release.sh be a different thing from 'make release'. You'll note that the script is very short (36 lines of code, a good chunk of which are an inline supfile), and could easily be adapted to suit any SCM. All it does is: 1. Check out source code 2. Build and install world into a chroot 3. Optionally check out doc/ports and install docproj ports 4. Run make release in the chroot The regular make release stuff only cares that src(/doc/ports) have shown up somehow on the host system and is well suited to the local patches or nonstandard SCM case. -Nathan