From owner-freebsd-ports@freebsd.org Tue Jul 10 10:15:13 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1E623103C02E for ; Tue, 10 Jul 2018 10:15:13 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BB5A98E49F for ; Tue, 10 Jul 2018 10:15:12 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id D76A45A9F17; Tue, 10 Jul 2018 10:15:05 +0000 (UTC) Date: Tue, 10 Jul 2018 10:15:05 +0000 From: Brooks Davis To: Michael Gmelin Cc: blubee blubeeme , FreeBSD Ports Subject: Re: git checkout branch in makefile Message-ID: <20180710101505.GF85898@spindle.one-eyed-alien.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ABTtc+pdwF7KHXCz" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 10:15:13 -0000 --ABTtc+pdwF7KHXCz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 09, 2018 at 08:19:13PM +0200, Michael Gmelin wrote: >=20 >=20 > > On 9. Jul 2018, at 19:34, blubee blubeeme wrote: > >=20 > > Is it possible to do a git checkout of a specific branch in a ports > > makefile? > >=20 > > How would I go about checking out a particular branch from a github pro= ject. >=20 > As branches aren???t stable this won???t buy you anything, that???s why y= ou should always go for a tag or commit (which is branch agnostic). If you want to make it easy to update to the latest commit on a branch, take a look at devel/llvm-devel/files/gen-Makefile.snapshot.sh for an example of automatically extracting that information from the github API. -- Brooks --ABTtc+pdwF7KHXCz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJbRIcpAAoJEKzQXbSebgfA6N4H/3TK5DtjL3IA0xbsPa2DdF4B 3k8XqqZW4wtHVzpThIz+tgbZvXMPwfJwFDwQ7T7oAjp993CzNC6vOeVnsAO5i/lz B7g4bv54qfsOq8R12GcTC7zoHR6D8U7jRtigZGEe1i5RTqSoRwx0zdo1w4Fau7Up VE/ZlypSG46rLeecZHpsGfiAuDnTMetLpJ7K1TJ0O8XjnrxUjEzci2ANI74YfEFP 579uxw6xcwEnuP6UUdepPxn2qYt1eQuMxz9H22ypKnCx/DuyDUz3Q6NPhV5R96br Iuqh4aa/dMYV0dNE41RK3kJtVmair6qKYsZsdPaobaI+a4cP2QrEkUKrj6jAxW4= =fkyf -----END PGP SIGNATURE----- --ABTtc+pdwF7KHXCz--