Commit a0910f55 authored by Stewart Brodie's avatar Stewart Brodie

Fixed a possible syntax error in awk script.

Detail:
  Also added extra checking to make sure that only macro definitions are
    parsed when looking for the application date string.
Admin:
  Still works for me - hopefully works on build machine too.

Version 1.56. Tagged as 'Edit-1_56'
parent f6101fcd
......@@ -6,9 +6,19 @@
GBLS Module_MinorVersion
GBLS Module_Date
GBLS Module_FullVersion
Module_MajorVersion SETS "1.55"
Module_Version SETA 155
GBLS Module_ApplicationDate2
GBLS Module_ApplicationDate4
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "1.56"
Module_Version SETA 156
Module_MinorVersion SETS ""
Module_Date SETS "12 May 2000"
Module_FullVersion SETS "1.55"
Module_Date SETS "05 Apr 2001"
Module_ApplicationDate2 SETS "05-Apr-01"
Module_ApplicationDate4 SETS "05-Apr-2001"
Module_ComponentName SETS "Edit"
Module_ComponentPath SETS "RiscOS/Sources/Apps/Edit"
Module_FullVersion SETS "1.56"
Module_HelpVersion SETS "1.56 (05 Apr 2001)"
END
/* (1.55)
/* (1.56)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 1.55
#define Module_MajorVersion_CMHG 1.56
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 12 May 2000
#define Module_Date_CMHG 05 Apr 2001
#define Module_MajorVersion "1.55"
#define Module_Version 155
#define Module_MajorVersion "1.56"
#define Module_Version 156
#define Module_MinorVersion ""
#define Module_Date "12 May 2000"
#define Module_Date "05 Apr 2001"
#define Module_FullVersion "1.55"
#define Module_ApplicationDate2 "05-Apr-01"
#define Module_ApplicationDate4 "05-Apr-2001"
#define Module_ComponentName "Edit"
#define Module_ComponentPath "RiscOS/Sources/Apps/Edit"
#define Module_FullVersion "1.56"
#define Module_HelpVersion "1.56 (05 Apr 2001)"
......@@ -4,12 +4,14 @@
BEGIN {
while (getline < "VersionNum" > 0) {
split($0, Version)
if (Version[2] == "Module_Date_CMHG") {
Date = Version[3] "-" Version[4] "-" substr(Version[5],3,2);
}
if (Version[2] == "Module_MajorVersion_CMHG") {
VString = Version[3];
split($0, Version);
if (Version[1] == "#define") {
if (Version[2] == "Module_ApplicationDate2") {
Date = substr(Version[3], 2, length(Version[3]) - 2);
}
if (Version[2] == "Module_MajorVersion_CMHG") {
VString = Version[3];
}
}
}
}
......@@ -23,4 +25,3 @@ END {
printf("EditId:%s (%s)\n", VString, Date);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment