bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] Gawk 4.0.0 Misreports its Version on Windows


From: Eli Zaretskii
Subject: Re: [bug-gawk] Gawk 4.0.0 Misreports its Version on Windows
Date: Fri, 30 Sep 2011 14:45:22 +0300

> Date: Tue, 20 Sep 2011 10:26:44 -0700 (PDT)
> From: David Millis <address@hidden>
> 
> The Windows build has an inaccurate PROCINFO["version"].
> Linux is unaffected.
> 
> gawk --version
> GNU Awk 4.0.0
> 
> gawk "BEGIN{print PROCINFO[\"version\"];}"
> 3.1.5a
> 
> 
> In the source, see gawk-4.0.0/pc/config.h:
> #define PACKAGE_STRING "GNU Awk 3.1.5a"
> #define PACKAGE_VERSION "3.1.5a"
> #define VERSION "3.1.5a"

Yes, it looks like these were not updated in ages.  Patch below.

Aharon, can you please arrange for this to be automatically updated
whenever you tar a release or a pretest?  Maintaining this by hand is
entirely unreliable.  TIA.

2011-09-30  Eli Zaretskii  <address@hidden>

        * config.h (PACKAGE_STRING, PACKAGE_VERSION, VERSION): Update the
        version.  Reported by David Millis <address@hidden>.
        (PACKAGE_URL): Define.

--- pc/config.h~0       2011-03-31 23:52:55.000000000 +0200
+++ pc/config.h 2011-09-30 14:38:55.093750000 +0300
@@ -416,16 +416,19 @@
 #define PACKAGE_NAME "GNU Awk"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "GNU Awk 3.1.5a"
+#define PACKAGE_STRING "GNU Awk 4.0.0"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "gawk"
 
+/* Define to the home page for this package. */
+#define PACKAGE_URL "http://www.gnu.org/software/gawk/";
+
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "3.1.5a"
+#define PACKAGE_VERSION "4.0.0"
 
 /* Version number of package */
-#define VERSION "3.1.5a"
+#define VERSION "4.0.0"
 
 /* Number of bits in a file offset, on hosts where this is settable. */
 /* #undef _FILE_OFFSET_BITS */



reply via email to

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