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