Commit 4ecd3b18 authored by Ben Avison's avatar Ben Avison Committed by ROOL
Browse files

Detect AMU version number and feature at runtime

Extract the version number from AMU's help message and set `AMU$Version`
accordingly. Also set `AMU$HasWorkingWildcard` depending upon whether the
installed version of AMU has a fully functional `$(wildcard)` function.

Version 1.40. Tagged as 'Env-1_40'
parent eab290ea
......@@ -29,3 +29,8 @@ bbe-env: bbe-generic-resources-get-alias
FIXED = no
find-amu-version:
@set BuildSys$AMU$Fixed ${FIXED}
@amu -help { > <Wimp$ScrapDir>.amu }
@GNU.gawk "NR==2 { print \"Set AMU$Version \" $3*100 }" { < <Wimp$ScrapDir>.amu > Pipe:$.amu }
@remove <Wimp$ScrapDir>.amu
@obey Pipe:$.amu
@set AMU$HasWorkingWildcard <AMU$Version> > 532
/* (1.39)
/* (1.40)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 1.39
#define Module_MajorVersion_CMHG 1.40
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 04 Jun 2019
#define Module_Date_CMHG 27 Oct 2019
#define Module_MajorVersion "1.39"
#define Module_Version 139
#define Module_MajorVersion "1.40"
#define Module_Version 140
#define Module_MinorVersion ""
#define Module_Date "04 Jun 2019"
#define Module_Date "27 Oct 2019"
#define Module_ApplicationDate "04-Jun-19"
#define Module_ApplicationDate "27-Oct-19"
#define Module_ComponentName "Env"
#define Module_FullVersion "1.39"
#define Module_HelpVersion "1.39 (04 Jun 2019)"
#define Module_LibraryVersionInfo "1:39"
#define Module_FullVersion "1.40"
#define Module_HelpVersion "1.40 (27 Oct 2019)"
#define Module_LibraryVersionInfo "1:40"
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