summaryrefslogtreecommitdiff
path: root/mk/subst.mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-03-07 09:29:25 +0000
committergrant <grant@pkgsrc.org>2004-03-07 09:29:25 +0000
commit23d5ff9ee1b4c92b7bb70867cfa03eeb625254c1 (patch)
treea565fe2379c26f13903eed0fb5a63c08d72639c3 /mk/subst.mk
parentcb33727cabef8d743f814715a9ae4458f49c45da (diff)
downloadpkgsrc-23d5ff9ee1b4c92b7bb70867cfa03eeb625254c1.tar.gz
Solaris' file(1) reports "executable [path] script" on scripts which
arent't shell scripts, so allow them to be subst'd.
Diffstat (limited to 'mk/subst.mk')
-rw-r--r--mk/subst.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/subst.mk b/mk/subst.mk
index 8c4a348524d..c56e9c1afe2 100644
--- a/mk/subst.mk
+++ b/mk/subst.mk
@@ -1,4 +1,4 @@
-# $NetBSD: subst.mk,v 1.10 2004/03/01 09:57:10 uebayasi Exp $
+# $NetBSD: subst.mk,v 1.11 2004/03/07 09:29:25 grant Exp $
#
# This Makefile fragment implements a general text replacement facility.
# Package makefiles define a ``class'', for each of which a paricular
@@ -32,7 +32,7 @@ ECHO_SUBST_MSG?= ${ECHO}
# _SUBST_IS_TEXT_FILE returns 0 if $${file} is a text file.
_SUBST_IS_TEXT_FILE?= \
- ${FILE_CMD} $${file} | ${EGREP} "(shell script|text)" >/dev/null 2>&1
+ ${FILE_CMD} $${file} | ${EGREP} "(executable .* script|shell script|text)" >/dev/null 2>&1
.for _class_ in ${SUBST_CLASSES}
_SUBST_COOKIE.${_class_}= ${WRKDIR}/.subst_${_class_}_done