xref: /freebsd/usr.bin/lex/version.awk (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1
2BEGIN {
3	FS = "[ \t\.\"]+"
4}
5
6{
7	if ($1 ~ /^#define$/ && $2 ~ /^VERSION$/) {
8		printf("%s.%s.%s\n", $3, $4, $5);
9	}
10}
11