[tz] [PATCH 3/3] tzselect: use /bin/sh by default
Mike Frysinger
vapier at gentoo.org
Sat Oct 27 07:14:36 UTC 2012
In looking through tzselect, I can't see any functionality that isn't
covered by the POSIX shell spec. Since we're modernizing, change this
to use /bin/sh by default.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
Makefile | 4 ++--
tzselect.ksh => tzselect.sh | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
rename tzselect.ksh => tzselect.sh (98%)
mode change 100644 => 100755
diff --git a/Makefile b/Makefile
index 000d3f4..25110b8 100644
--- a/Makefile
+++ b/Makefile
@@ -283,7 +283,7 @@ LIBOBJS= localtime.o asctime.o difftime.o
HEADERS= tzfile.h private.h
NONLIBSRCS= zic.c zdump.c scheck.c ialloc.c
NEWUCBSRCS= date.c strftime.c
-SOURCES= $(HEADERS) $(LIBSRCS) $(NONLIBSRCS) $(NEWUCBSRCS) tzselect.ksh
+SOURCES= $(HEADERS) $(LIBSRCS) $(NONLIBSRCS) $(NEWUCBSRCS) tzselect.sh
MANS= newctime.3 newstrftime.3 newtzset.3 time2posix.3 \
tzfile.5 tzselect.8 zic.8 zdump.8
COMMON= Makefile
@@ -387,7 +387,7 @@ date: $(DATEOBJS)
$(CC) $(CFLAGS) $(LDFLAGS) date.o localtime.o asctime.o \
strftime.o $(LDLIBS) -lc -o $@
-tzselect: tzselect.ksh
+tzselect: tzselect.sh
sed \
-e 's|AWK=[^}]*|AWK=$(AWK)|g' \
-e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \
diff --git a/tzselect.ksh b/tzselect.sh
old mode 100644
new mode 100755
similarity index 98%
rename from tzselect.ksh
rename to tzselect.sh
index 9e8ceea..40134d8
--- a/tzselect.ksh
+++ b/tzselect.sh
@@ -1,4 +1,4 @@
-#! /bin/ksh
+#! /bin/sh
TZVERSION=see_Makefile
@@ -9,8 +9,8 @@ TZVERSION=see_Makefile
# Porting notes:
#
-# This script requires several features of the Korn shell.
-# If your host lacks the Korn shell,
+# This script requires several features of modern shells.
+# If your host lacks such a shell,
# you can use either of the following free programs instead:
#
# <a href=ftp://ftp.gnu.org/pub/gnu/>
--
1.7.12
More information about the tz
mailing list