Fix bug in getBuildInfo.awk that happens only when building a release version

This commit is contained in:
Guy Scharf 2020-04-17 08:40:33 -07:00
parent c58509d655
commit 3ce3b36830

View File

@ -24,6 +24,9 @@
build = dict[status] build = dict[status]
print "#define MyBuildNumber \"" (build * 100) "\"" print "#define MyBuildNumber \"" (build * 100) "\""
# strip any trailing quote (only happens for a release build)
sub("\"","",v[3])
# v[1] already includes a leading quote mark # v[1] already includes a leading quote mark
print "#define MyVersionNumbers " v[1] "." v[2] "." v[3] "." (build * 100) "\"" print "#define MyVersionNumbers " v[1] "." v[2] "." v[3] "." (build * 100) "\""
} }