|
From: | Aharon Robbins |
Subject: | Re: Current trunk fails to build on MS-Windows |
Date: | Fri, 16 Jan 2015 13:19:24 +0200 |
User-agent: | Heirloom mailx 12.5 6/20/10 |
Hi. > I had a look at the missing script and it decides that the tool has a > wrong version if it has exit status 63. This works for some tools like > automake and bison. How do they make this work? > A quick check of the Gawk manual didn't reveal any > way to check for the version when running. Inside an awk script you can look at PROCINFO["version"]: if (! ("version" in PROCINFO) || PROCINFO["version"] !~ /^[4-9]\./) { print("This version of awk/gawk won't cut it.") > "/dev/stderr" exit 1 } HTH, Arnold
[Prev in Thread] | Current Thread | [Next in Thread] |