Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2005 23:52:07 -0500
From:      "Dan Langille" <dan@langille.org>
To:        freebsd-ports@freebsd.org
Subject:   Latest __FREEBSD__ value for each release
Message-ID:  <437A74A7.21874.1F3E90C0@localhost>

next in thread | raw e-mail | index | archive | help
Hi folks,

For an upcoming FreshPorts project, I want to extract the latest 
value for __FREEBSD__ for each branch.  I'm hoping someone can save 
me some time and write a small perl script for me.  Thanks.

Given the release tags for the 4, 5, 6, and 7 branches[1], grab 
src/sys/sys/param.h from cvsweb[2], and grep for __FreeBSD_version.

What I need printed out on a single line is something like this.

4 492100
5 504104
6 600100
7 700006

Try starting with something like this:

my %Branches = ('HEAD' => 7, 'RELENG_6' => 6, 'RELENG_5' => 5, 
'RELENG_4' => 4);

Thank you.

[1] - http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvs-
tags.html

[2] - http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/param.h


-- 
Dan Langille : http://www.langille.org/
BSDCan - The Technical BSD Conference - http://www.bsdcan.org/





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?437A74A7.21874.1F3E90C0>