mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-09-23 07:12:19 +00:00
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:
@@ -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)|' \
|
||||
|
||||
Reference in New Issue
Block a user