From ee3ddc6c233b4254e13027575ef38b603475762e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 1 Nov 2022 10:52:36 -0700 Subject: [PROPOSED 1/2] Work around MS-Windows nmake bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Work around an nmake incompatibility with POSIX. Problem reported by Manuela Friedrich in: https://mm.icann.org/pipermail/tz/2022-October/032126.html * Makefile (check_sorted): Don’t use ‘^$$/’, which causes MS-Windows nmake to report a syntax error and exit due to its nonstandard treatment of ‘^$’ to mean ‘$$’, which means the following ‘$/’ is a syntax error. Don’t bother to replace other instances of ‘^$’; they are harmless unless you run ‘make check’ which wouldn’t work on native MS-Windows anyway. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1d8472fb..8c4c6aba 100644 --- a/Makefile +++ b/Makefile @@ -829,7 +829,7 @@ check_slashed_abbrs: $(TDATA_TO_CHECK) CHECK_CC_LIST = { n = split($$1,a,/,/); for (i=2; i<=n; i++) print a[1], a[i]; } check_sorted: backward backzone iso3166.tab zone.tab zone1970.tab - $(AWK) '/^Link/ {printf "%.5d %s\n", g, $$3} /^$$/ {g++}' \ + $(AWK) '/^Link/ {printf "%.5d %s\n", g, $$3} !/./ {g++}' \ backward | LC_ALL=C sort -cu $(AWK) '/^Zone/ {print $$2}' backzone | LC_ALL=C sort -cu touch $@ -- 2.37.2