summaryrefslogtreecommitdiff
path: root/mk/configure/replace-interpreter.mk
diff options
context:
space:
mode:
authorsbd <sbd>2012-02-06 06:18:36 +0000
committersbd <sbd>2012-02-06 06:18:36 +0000
commit5629609aef8703ed6674d2dae82002bbd338b6cc (patch)
tree38b84b9c1e53ba5c131c9d9e571f262abf979d0f /mk/configure/replace-interpreter.mk
parent677e0771858df75d944c268dfe67c0988bdae12f (diff)
downloadpkgsrc-5629609aef8703ed6674d2dae82002bbd338b6cc.tar.gz
Add REPLACE_CSH as a replace interpreter template.
Diffstat (limited to 'mk/configure/replace-interpreter.mk')
-rw-r--r--mk/configure/replace-interpreter.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/configure/replace-interpreter.mk b/mk/configure/replace-interpreter.mk
index 30faa905d4f..95316dbd3b8 100644
--- a/mk/configure/replace-interpreter.mk
+++ b/mk/configure/replace-interpreter.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace-interpreter.mk,v 1.10 2011/05/20 15:02:27 wiz Exp $
+# $NetBSD: replace-interpreter.mk,v 1.11 2012/02/06 06:18:36 sbd Exp $
# This file provides common templates for replacing #! interpreters
# in script files.
@@ -7,6 +7,7 @@
#
# REPLACE_AWK
# REPLACE_BASH
+# REPLACE_CSH
# REPLACE_KSH
# REPLACE_PERL
# REPLACE_SH
@@ -42,6 +43,7 @@ do-configure-pre-hook: replace-interpreter
REPLACE_INTERPRETER?= # none
REPLACE_AWK?= # none
REPLACE_BASH?= # none
+REPLACE_CSH?= # none
REPLACE_KSH?= # none
REPLACE_PERL?= # none
REPLACE_SH?= # none
@@ -60,6 +62,13 @@ REPLACE.sys-bash.new= ${BASH}
REPLACE_FILES.sys-bash= ${REPLACE_BASH}
.endif
+.if !empty(REPLACE_CSH:M*)
+REPLACE_INTERPRETER+= sys-csh
+REPLACE.sys-csh.old= .*csh
+REPLACE.sys-csh.new= ${CSH}
+REPLACE_FILES.sys-csh= ${REPLACE_CSH}
+.endif
+
.if !empty(REPLACE_KSH:M*)
REPLACE_INTERPRETER+= sys-ksh
REPLACE.sys-ksh.old= [^[:space:]]*sh