A warning is printed for every non-text file. This helps in detecting
broken file(1) databases. It also gives an indication of whether this test is necessary at all.
This commit is contained in:
parent
b4723c94c6
commit
7dccf8e1ba
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: subst.mk,v 1.23 2005/08/21 22:00:07 rillig Exp $
|
||||
# $NetBSD: subst.mk,v 1.24 2005/11/17 23:17:02 rillig Exp $
|
||||
#
|
||||
# This Makefile fragment implements a general text replacement facility.
|
||||
# Package makefiles define a ``class'', for each of which a particular
|
||||
|
@ -96,6 +96,8 @@ ${_SUBST_COOKIE.${_class_}}:
|
|||
${SUBST_POSTCMD.${_class_}}; \
|
||||
${ECHO} "$$file" >> ${.TARGET}; \
|
||||
fi; \
|
||||
else \
|
||||
${ECHO_SUBST_MSG} "[subst.mk] WARNING: Ignoring non-text file \"$$file\"." 1>&2; \
|
||||
fi; \
|
||||
done
|
||||
.endfor
|
||||
|
|
Loading…
Reference in a new issue