freebsd-skq/usr.bin/lex/version.awk

12 lines
131 B
Awk
Raw Normal View History

# $FreeBSD$
BEGIN {
FS = "[ \t\.\"]+"
}
{
if ($1 ~ /^#define$/ && $2 ~ /^VERSION$/) {
2020-06-18 18:09:16 +00:00
printf("%s.%s.%s\n", $3, $4, $5);
}
}