[tz] [PATCH 3/4] tzselect: Set interpreter to /bin/sh.

Patrick 'P. J.' McDermott pj at pehjota.net
Sat Oct 5 16:35:21 UTC 2013


* tzselect.sh: Set interpreter to /bin/sh.
* Makefile (KSHELL): Remove.  All uses removed.
---
 Makefile    | 6 +-----
 tzselect.sh | 2 +-
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 96d9acb..2ec915d 100644
--- a/Makefile
+++ b/Makefile
@@ -246,10 +246,6 @@ 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 12.10.
 SGML_TOPDIR= /usr
@@ -427,7 +423,7 @@ date:		$(DATEOBJS)
 
 tzselect:	tzselect.sh
 		sed \
-			-e 's|#!/bin/bash|#!$(KSHELL)|g' \
+			-e 's|#!/bin/sh|#!$(SHELL)|g' \
 			-e 's|AWK=[^}]*|AWK=$(AWK)|g' \
 			-e 's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \
 			-e 's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \
diff --git a/tzselect.sh b/tzselect.sh
index 89cdfe3..72e7504 100644
--- a/tzselect.sh
+++ b/tzselect.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 PKGVERSION='(tzcode) '
 TZVERSION=see_Makefile
-- 
Patrick "P. J." McDermott
  http://www.pehjota.net/
Lead Developer, ProteanOS
  http://www.proteanos.com/


More information about the tz mailing list