git checkout branch in makefile

blubee blubeeme gurenchan at gmail.com
Tue Jul 10 12:48:06 UTC 2018


On Tue, Jul 10, 2018 at 6:15 PM Brooks Davis <brooks at freebsd.org> wrote:

> On Mon, Jul 09, 2018 at 08:19:13PM +0200, Michael Gmelin wrote:
> >
> >
> > > On 9. Jul 2018, at 19:34, blubee blubeeme <gurenchan at gmail.com> wrote:
> > >
> > > Is it possible to do a git checkout of a specific branch in a ports
> > > makefile?
> > >
> > > How would I go about checking out a particular branch from a github
> project.
> >
> > As branches aren???t stable this won???t buy you anything, that???s why
> you 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
>
That's actually pretty neat stuff, thanks for the reference.


More information about the freebsd-ports mailing list