mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 09:02:44 +00:00
b03ddec95f
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)
29 lines
284 B
Awk
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"
|
|
}
|