1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00
freebsd/release/svnbranch.awk
John Baldwin b03ddec95f Add the ability to build a release from an SVN checkout instead of a CVS
checkout.  If SVNROOT is specified, then the source tree will be checked
out from that SVN repository instead of using CVS.  ports and docs still
use CVS.  If SVNROOT is not specified, then the source tree will be checked
out using CVS.  An explicit SVN branch can be specified using SVNBRANCH
(e.g. SVNBRANCH=stable/8).  If SVNBRANCH is not set but RELEASETAG is set
to a CVS branch (such as RELENG_8) the appropriate SVN branch will be
inferred from the CVS branch using svnbranch.awk.

Note that there are still several open questions about using SVN instead
of CVS in the release process.  However, this does enable one to build a
release from an SVN repository if needed.

Approved by:	re (kensmith)
2009-08-14 20:35:42 +00:00

29 lines
284 B
Awk

# $FreeBSD$
BEGIN {
FS = "_"
}
/RELENG_.*_RELEASE/ {
if (NF == 5) {
printf "release/%s.%s.%s", $2, $3, $4
exit
}
}
/RELENG_.*/ {
if (NF == 3) {
printf "releng/%s.%s", $2, $3
exit
}
if (NF == 2) {
printf "stable/%s", $2
exit
}
}
// {
printf "unknown_branch"
}