71
by Arnold D. Robbins
Cleanup the mainline PC code, and pc/ directory. |
1 |
This is the README for GNU awk 4 under Windows32, OS/2, and DOS. |
21
by Arnold D. Robbins
Move to gawk-3.0.0. |
2 |
|
31
by Arnold D. Robbins
Move to gawk-3.1.3. |
3 |
Gawk has been compiled and tested under OS/2, DOS, and Windows32 using |
25
by Arnold D. Robbins
Move to gawk-3.0.4. |
4 |
the GNU development tools from DJ Delorie (DJGPP; DOS with special |
71
by Arnold D. Robbins
Cleanup the mainline PC code, and pc/ directory. |
5 |
support for long filenames on Windows), Eberhard Mattes (EMX; OS/2, |
31
by Arnold D. Robbins
Move to gawk-3.1.3. |
6 |
DOS, and Windows32 with rsxnt), and Jan-Jaap van der Heijden and Mumit Khan |
71
by Arnold D. Robbins
Cleanup the mainline PC code, and pc/ directory. |
7 |
(Mingw32; Windows32). |
21
by Arnold D. Robbins
Move to gawk-3.0.0. |
8 |
|
40
by Arnold D. Robbins
Bring latest byte code gawk into git. Hurray! |
9 |
The Cygwin environment (http://cygwin.com) may also be used |
10 |
to compile and run gawk under Windows. For Cygwin, building and |
|
29
by Arnold D. Robbins
Move to gawk-3.1.1. |
11 |
installation is the same as under Unix: |
12 |
||
408.2.44
by Arnold D. Robbins
Update various README_d/* files. |
13 |
tar -xvpzf gawk-4.1.x.tar.gz |
14 |
cd gawk-4.1.x |
|
29
by Arnold D. Robbins
Move to gawk-3.1.1. |
15 |
./configure && make |
16 |
||
17 |
The `configure' step takes a long time, but works otherwise. |
|
18 |
||
408.4.10
by Arnold D. Robbins
Update in README_d/README.pc. |
19 |
******************************** N O T E ******************************* |
20 |
* The `|&' operator only works when gawk is compiled for Cygwin or for * |
|
408.5.138
by Arnold D. Robbins
Typo fix in README_d/README.pc. |
21 |
* MinGW. Neither socket support nor two-way pipes work in any other * |
408.4.10
by Arnold D. Robbins
Update in README_d/README.pc. |
22 |
* Windows environment! * |
23 |
************************************************************************ |
|
21
by Arnold D. Robbins
Move to gawk-3.0.0. |
24 |
|
25 |
Building gawk |
|
26 |
------------- |
|
27 |
||
22
by Arnold D. Robbins
Move to gawk-3.0.1. |
28 |
Copy the files in the `pc' directory (EXCEPT for `ChangeLog') to the |
29 |
directory with the rest of the gawk sources. (The subdirectories of |
|
71
by Arnold D. Robbins
Cleanup the mainline PC code, and pc/ directory. |
30 |
`pc' need not be copied.) The Makefile contains a configuration |
22
by Arnold D. Robbins
Move to gawk-3.0.1. |
31 |
section with comments, and may need to be edited in order to work |
408.2.97
by Eli Zaretskii
Fix building, installing, and testing extensions on MS-Windows. |
32 |
with your make utility. If you are building with MinGW, copy the |
33 |
file Makefile.ext to extension/Makefile. |
|
21
by Arnold D. Robbins
Move to gawk-3.0.0. |
34 |
|
35 |
The "prefix" line in the Makefile is used during the install of gawk |
|
36 |
(and in building igawk.bat and igawk.cmd). Since the libraries for |
|
37 |
gawk will be installed under $(prefix)/lib/awk (e.g., /gnu/lib/awk), |
|
38 |
it is convenient to have this directory in DEFPATH of config.h. |
|
39 |
||
40 |
The makefile contains a number of targets for building various DOS and |
|
22
by Arnold D. Robbins
Move to gawk-3.0.1. |
41 |
OS/2 versions. A list of targets will be printed if the make command is |
42 |
given without a target. As an example, to build gawk using the djgpp |
|
21
by Arnold D. Robbins
Move to gawk-3.0.0. |
43 |
tools, enter "make djgpp". |
44 |
||
408.2.97
by Eli Zaretskii
Fix building, installing, and testing extensions on MS-Windows. |
45 |
For the MinGW build, after you build in the top-level directory, chdir |
46 |
to the extension subdirectory and say "make" there to build the |
|
47 |
extensions. |
|
48 |
||
21
by Arnold D. Robbins
Move to gawk-3.0.0. |
49 |
|
50 |
Testing and installing gawk |
|
51 |
--------------------------- |
|
52 |
||
53 |
The command "make test" (and possibly "make install") requires several |
|
22
by Arnold D. Robbins
Move to gawk-3.0.1. |
54 |
Unix-like tools, including an sh-like shell, sed, cp, and cmp. Only |
55 |
dmake and GNU make are known to work on "make test". |
|
21
by Arnold D. Robbins
Move to gawk-3.0.0. |
56 |
|
57 |
There are two methods for the install: Method 1 uses a typical Unix-like |
|
58 |
approach and requires cat, cp, mkdir, sed, and sh; method 2 uses gawk |
|
59 |
and batch files. See the configuration section of the makefile. |
|
60 |
||
61 |
The file test/Makefile will need some editing (especially for DOS). A |
|
62 |
sample makefile with comments appears in pc/Makefile.tst, and can be |
|
408.2.97
by Eli Zaretskii
Fix building, installing, and testing extensions on MS-Windows. |
63 |
used to modify test/Makefile for your platform. For starters, just |
64 |
copy pc/Makefile.tst to test/Makefile, then walk through the variables |
|
65 |
defined at the beginning and change them as appropriate for your |
|
66 |
setup. In addition, some files in the test directory may need to have |
|
67 |
their end-of-line markers converted, as described in Makefile.tst. |
|
21
by Arnold D. Robbins
Move to gawk-3.0.0. |
68 |
|
25
by Arnold D. Robbins
Move to gawk-3.0.4. |
69 |
As with building gawk, the OS, shell, and long filename issues come into |
70 |
play when testing, too. If you are testing gawk on a LFN aware system with |
|
71 |
some LFN aware tools, you may have problems if the shell that you specify in |
|
72 |
test/Makefile is not LFN aware. This problem will apply whether or not |
|
73 |
you are building a LFN aware gawk. See the comments in pc/Makefile.tst |
|
74 |
for more information on this. |
|
75 |
||
21
by Arnold D. Robbins
Move to gawk-3.0.0. |
76 |
It is routine to install by hand, but note that the install target also |
77 |
builds igawk.bat and igawk.cmd, which are used to add an include |
|
78 |
facility to gawk (and which require sh). |
|
79 |
||
80 |
||
28
by Arnold D. Robbins
Move to gawk-3.1.0. |
81 |
Gawk thanks |
82 |
----------- |
|
22
by Arnold D. Robbins
Move to gawk-3.0.1. |
83 |
|
71
by Arnold D. Robbins
Cleanup the mainline PC code, and pc/ directory. |
84 |
The DOS maintainers wish to express their thanks to Eli Zaretskii |
85 |
<eliz@gnu.org> for his work and for the many conversations concerning |
|
86 |
gawk, make, and djgpp. His FAQ for djgpp is essential reading, and he |
|
87 |
was always willing to answer our questions (even when we didn't read |
|
88 |
the relevant portions of the FAQ :). |
|
22
by Arnold D. Robbins
Move to gawk-3.0.1. |
89 |
|
71
by Arnold D. Robbins
Cleanup the mainline PC code, and pc/ directory. |
90 |
We are indebted to Juan Grigera <juan@biophnet.unlp.edu.ar> for |
91 |
additional help on changes for Windows32. |
|
22
by Arnold D. Robbins
Move to gawk-3.0.1. |
92 |
|
21
by Arnold D. Robbins
Move to gawk-3.0.0. |
93 |
|
94 |
---- |
|
95 |
If you have any problems with the DOS or OS/2 versions of Gawk, |
|
96 |
please send bug reports (along with the version and compiler used) to |
|
97 |
||
34
by Arnold D. Robbins
Move to gawk-3.1.6. |
98 |
Scott Deifik, scottd.mail@sbcglobal.net (DOS versions) |
21
by Arnold D. Robbins
Move to gawk-3.0.0. |
99 |
or |
35
by Arnold D. Robbins
Move to gawk-3.1.7. |
100 |
andreas.buening@nexgo.de (OS/2 version) |
101 |
||
102 |
Support for Windows32 started in gawk-3.0.3. |
|
277.1.15
by Arnold D. Robbins
Misc documentation fixes. |
103 |
|
104 |
---- |
|
105 |
From: Eric Pement <eric.pement@gmail.com> |
|
106 |
Newsgroups: comp.lang.awk |
|
107 |
Subject: djgpp Gawk ver. 4.0 available |
|
108 |
Date: Tue, 26 Jul 2011 06:42:00 -0700 (PDT) |
|
109 |
MS Windows users: |
|
110 |
||
111 |
The DJGPP compilation of GNU awk v4.0.0 is now available here: |
|
112 |
||
113 |
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/gwk400b.zip |
|
114 |
||
115 |
For those who don't know the difference between the DGJPP compile and |
|
116 |
other versions compiled for Windows, the most noticeable to me is that |
|
117 |
it supports Unix-style use of 'single' and "double" quoting. Example: |
|
118 |
||
119 |
[c:\tmp]> :: normal Windows awk requires complex quoting |
|
120 |
[c:\tmp]> gawk "BEGIN{ print \"hello, world\" }" |
|
121 |
hello, world |
|
122 |
[c:\tmp]> :: DJGPP compile of awk permits Unix quoting in CMD |
|
123 |
[c:\tmp]> djgawk 'BEGIN{ print "hello, world" }' |
|
124 |
hello, world |
|
125 |
||
126 |
Syntactic sugar? Sure. But it makes life easier in a Windows |
|
127 |
environment, and without installing Cygwin ... |
|
128 |
||
129 |
Eric P. |