Have tzselect.ksh use Bash by default; this can be overridden.

* Makefile (KSHELL): New macro.
(tzselect): Use it.
* tzselect.ksh: Use "#!/bin/bash", not "#! /bin/ksh".  The Makefile
can override this.  No need for a space after "!'; that was put in
years ago only because of an urban legend.
This commit is contained in:
Paul Eggert
2012-10-27 13:54:13 -07:00
parent 540e58b0aa
commit 6daf83cd40
2 changed files with 17 additions and 19 deletions
+5
View File
@@ -238,6 +238,10 @@ ZIC= $(zic) $(ZFLAGS)
# The name of a Posix-compliant `awk' on your system.
AWK= awk
# The full path name of a Posix-compliant shell that supports the Korn shell's
# 'select' statement, as an extension. These days, Bash is the most popular.
KSHELL= /bin/bash
# The path where SGML DTDs are kept.
# The default is appropriate for Ubuntu.
SGML_TOPDIR= /usr
@@ -389,6 +393,7 @@ date: $(DATEOBJS)
tzselect: tzselect.ksh
sed \
-e 's|#!/bin/bash|#!$(KSHELL)|g' \
-e 's|AWK=[^}]*|AWK=$(AWK)|g' \
-e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \
-e 's|\(TZVERSION\)=.*|\1=tz$(VERSION)|' \