From 23d5ff9ee1b4c92b7bb70867cfa03eeb625254c1 Mon Sep 17 00:00:00 2001 From: grant Date: Sun, 7 Mar 2004 09:29:25 +0000 Subject: Solaris' file(1) reports "executable [path] script" on scripts which arent't shell scripts, so allow them to be subst'd. --- mk/subst.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mk/subst.mk') 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 -- cgit v1.2.3