texinfo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Current trunk fails to build on MS-Windows


From: Aharon Robbins
Subject: Re: Current trunk fails to build on MS-Windows
Date: Fri, 27 Feb 2015 10:59:50 +0200
User-agent: Heirloom mailx 12.5 6/20/10

Hi.

I'm super behind on email; not sure if I answered this.

> Date: Sat, 17 Jan 2015 17:38:42 +0000
> Subject: Re: Current trunk fails to build on MS-Windows
> From: Gavin Smith <address@hidden>
> To: Aharon Robbins <address@hidden>
> Cc: Eli Zaretskii <address@hidden>, address@hidden,
>         Karl Berry <address@hidden>
>
> >> 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
> >         }
>
> This would work even if the PROCINFO array didn't exist right? So it
> would work for any version of awk.

Right on both counts.

> What if another awk variant,
> incompatible with GNU Gawk, uses PROCINFO["version"] for its versions?

No other variant that I know of has PROCINFO. I doubt that there ever
will be another that does. I'm willing to take the chance.

> (Also the version number check there needs tweaking so that it allows
> version "10". :-) ).

I will probably be long dead before the gawk major version gets anywhere
close to 10. So I'm not going to worry about this.

> Karl has added a note to README-hacking so a check for this is not essential.

So, it sounds like this subject is long closed. :-)

Unrelated: I just pushed fixes to texindex/jrtangle to work on WIndows
from Eli.

Thanks,

Arnold



reply via email to

[Prev in Thread] Current Thread [Next in Thread]