Hi,

I'm not completely sure if this belongs to dev@ or docs@, please advise if
I should repost to dev@.

I'm involved in the Subversion project and in investigating our build
scripts for Windows, I found our link to awk.exe, at
http://www.cs.princeton.edu/~bwk/btl.mirror/ was 404.

When searching for alternatives, I realized HTTPD's page for compiling on
Windows [1] (I believe it is built from [2]) containing the same link.

Have you looked for another source for pre-built awk.exe? My best bet
currently is gnuwin32/gawk [3], [4].

Incidentally, I realised the repository contains sources for what seems to
be a copy of the original awk.exe, at [5]. I had to make a small adjustment
to the build script to make it build on Visual Studio 2022:

[[[
Index: buildwin.bat
===================================================================
--- buildwin.bat        (revision 1904474)
+++ buildwin.bat        (working copy)
@@ -5,7 +5,7 @@
 rem If you delete the call to setlocal it will probably work under
Win95/Win98 as well.

 setlocal
-set cl=-w -Ox -QIfdiv- -nologo -link -nologo setargv.obj
+set cl=/DHAS_ISBLANK -w -Ox -nologo -link -nologo setargv.obj

 cl maketab.c -o maketab.exe
 maketab.exe > proctab.c
]]]

Kind regards,
Daniel Sahlberg

[1] https://httpd.apache.org/docs/trunk/platform/win_compiling.html
[2]
https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/manual/platform/win_compiling.xml
[3] https://gnuwin32.sourceforge.net/packages/gawk.htm
[4] http://gnuwin32.sourceforge.net/downlinks/gawk-bin-zip.php
[5] https://svn.apache.org/repos/asf/httpd/httpd/win32-msi/trunk/awk

Reply via email to