# Generate an assembler header file containing ApplicationName# and ApplicationVersion using information in the Messages file.# Component version and date need only be updated in Messages file#BEGIN { found = 0}{ if (!found) { split($1, Id, ":") if (Id[1] == "PntID") { found = 1 split($2, Date, "-") } }}END { printf("; AppName - generated from Messages, used by ModuleWrap\n;\n") printf(" GBLS ApplicationName\n") printf("ApplicationName SETS \"Paint\"\n") printf(" GBLS ApplicationVersion\n") printf("ApplicationVersion SETS \"%s %s %s 19%s\"\n\n", Id[2], Date[1], Date[2], Date[3]) printf(" END\n")}