mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
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"
|
||
|
}
|