[tz] [PATCH 4/4] Support busybox awk
Paul Eggert
eggert at cs.ucla.edu
Mon Dec 13 19:03:52 UTC 2021
* Makefile (tzselect): Allow AWK to have spaces, so that
"make AWK='busybox awk'" works.
---
Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index fd312d9..d30227a 100644
--- a/Makefile
+++ b/Makefile
@@ -399,9 +399,9 @@ ZFLAGS=
ZIC_INSTALL= $(ZIC) -d '$(DESTDIR)$(TZDIR)' $(LEAPSECONDS)
# The name of a Posix-compliant 'awk' on your system.
-# Older 'mawk' versions, such as the 'mawk' in Ubuntu 16.04, might dump core;
-# on Ubuntu you can work around this with
-# AWK= gawk
+# It is better (though not essential) if 'awk' supports UTF-8;
+# unfortunately, mawk and busybox awk do not support UTF-8.
+# Solaris 10 /usr/bin/awk does not work; try AWK=gawk or AWK=nawk.
AWK= awk
# The full path name of a Posix-compliant shell, preferably one that supports
@@ -744,7 +744,7 @@ date: $(DATEOBJS)
tzselect: tzselect.ksh version
VERSION=`cat version` && sed \
-e 's|#!/bin/bash|#!$(KSHELL)|g' \
- -e 's|AWK=[^}]*|AWK=$(AWK)|g' \
+ -e 's|AWK=[^}]*|AWK='\''$(AWK)'\''|g' \
-e 's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \
-e 's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \
-e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \
--
2.32.0
More information about the tz
mailing list