pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/configure Add REPLACE_KSH similiar to REPLACE_BASH ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/836fc46363b4
branches:  trunk
changeset: 531294:836fc46363b4
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Jul 28 00:42:33 2007 +0000

description:
Add REPLACE_KSH similiar to REPLACE_BASH and REPLACE_SH as the
CHECK_INTERPRETER bulk build has shown a surprising number of
packages using it.

diffstat:

 mk/configure/replace-interpreter.mk |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r 195dab662c0e -r 836fc46363b4 mk/configure/replace-interpreter.mk
--- a/mk/configure/replace-interpreter.mk       Sat Jul 28 00:31:14 2007 +0000
+++ b/mk/configure/replace-interpreter.mk       Sat Jul 28 00:42:33 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: replace-interpreter.mk,v 1.6 2007/03/08 23:58:20 rillig Exp $
+# $NetBSD: replace-interpreter.mk,v 1.7 2007/07/28 00:42:33 joerg Exp $
 
 # This file provides common templates for replacing #! interpreters
 # in script files.
@@ -7,6 +7,7 @@
 #
 # REPLACE_AWK
 # REPLACE_BASH
+# REPLACE_KSH
 # REPLACE_PERL
 # REPLACE_PYTHON
 # REPLACE_SH
@@ -41,6 +42,7 @@
 REPLACE_INTERPRETER?=  # none
 REPLACE_AWK?=  # none
 REPLACE_BASH?= # none
+REPLACE_KSH?=  # none
 REPLACE_PERL?= # none
 REPLACE_SH?=   # none
 
@@ -58,6 +60,13 @@
 REPLACE_FILES.sys-bash=        ${REPLACE_BASH}
 .endif
 
+.if !empty(REPLACE_KSH:M*)
+REPLACE_INTERPRETER+=  sys-ksh
+REPLACE.sys-ksh.old=   [^[:space:]]*sh
+REPLACE.sys-ksh.new=   ${TOOLS_PATH.ksh}
+REPLACE_FILES.sys-ksh= ${REPLACE_KSH}
+.endif
+
 .if !empty(REPLACE_PERL:M*)
 REPLACE_INTERPRETER+=  sys-Perl
 REPLACE.sys-Perl.old=  .*perl[^[:space:]]*



Home | Main Index | Thread Index | Old Index