AppName 770 Bytes
Newer Older
Neil Turton's avatar
Neil Turton committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
# 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")
}