11 lines
248 B
Awk
11 lines
248 B
Awk
BEGIN {
|
|
if (ARGC <= 2) {
|
|
print "Bogus use of awk file, requires arg"
|
|
exit 1
|
|
} else {
|
|
v=ARGV[1]
|
|
ARGV[1]=""
|
|
}
|
|
}
|
|
$0 ~ /#define DW_VERSION_DATE_STR/ { print $1, $2, "\"",v,"\"" }
|
|
$0 !~ /^#define DW_VERSION_DATE_STR/ { print $0 }
|