version.awk revision 250881
1# $FreeBSD: head/usr.bin/lex/version.awk 250881 2013-05-21 19:32:35Z jkim $ 2 3BEGIN { 4 FS = "[ \t\.\"]+" 5} 6 7{ 8 if ($1 ~ /^#define$/ && $2 ~ /^VERSION$/) { 9 printf("-DFLEX_MAJOR_VERSION=%s\n", $3); 10 printf("-DFLEX_MINOR_VERSION=%s\n", $4); 11 printf("-DFLEX_SUBMINOR_VERSION=%s\n", $5); 12 } 13} 14