mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-18 22:15:46 +01:00
14 lines
227 B
Awk
14 lines
227 B
Awk
# $FreeBSD$
|
|
|
|
BEGIN {
|
|
FS = "[ \t\.\"]+"
|
|
}
|
|
|
|
{
|
|
if ($1 ~ /^#define$/ && $2 ~ /^VERSION$/) {
|
|
printf("-DFLEX_MAJOR_VERSION=%s\n", $3);
|
|
printf("-DFLEX_MINOR_VERSION=%s\n", $4);
|
|
printf("-DFLEX_SUBMINOR_VERSION=%s\n", $5);
|
|
}
|
|
}
|