diff options
author | joerg <joerg@pkgsrc.org> | 2007-07-28 00:42:33 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-07-28 00:42:33 +0000 |
commit | f493ba1049e99d2744689970dacaa8a37b98df24 (patch) | |
tree | f5a00331af762784dfbdf9fcbfa70d47792c836b /mk/configure/replace-interpreter.mk | |
parent | 4853428fab0189a476645bffa04cbf5c61e5cdc6 (diff) | |
download | pkgsrc-f493ba1049e99d2744689970dacaa8a37b98df24.tar.gz |
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 (limited to 'mk/configure/replace-interpreter.mk')
-rw-r--r-- | mk/configure/replace-interpreter.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/configure/replace-interpreter.mk b/mk/configure/replace-interpreter.mk index ef4976f3f1e..cd17d21e4a9 100644 --- a/mk/configure/replace-interpreter.mk +++ b/mk/configure/replace-interpreter.mk @@ -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 @@ do-configure-pre-hook: replace-interpreter REPLACE_INTERPRETER?= # none REPLACE_AWK?= # none REPLACE_BASH?= # none +REPLACE_KSH?= # none REPLACE_PERL?= # none REPLACE_SH?= # none @@ -58,6 +60,13 @@ REPLACE.sys-bash.new= ${BASH} 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:]]* |