pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk A warning is printed for every non-text file. This ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/998aafd5776d
branches:  trunk
changeset: 503297:998aafd5776d
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Nov 17 23:17:02 2005 +0000

description:
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.

diffstat:

 mk/subst.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 787e85267f36 -r 998aafd5776d mk/subst.mk
--- a/mk/subst.mk       Thu Nov 17 22:58:36 2005 +0000
+++ b/mk/subst.mk       Thu Nov 17 23:17:02 2005 +0000
@@ -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_POSTCMD.${_class_}};            \
                                ${ECHO} "$$file" >> ${.TARGET};         \
                        fi;                                             \
+               else                                                    \
+                       ${ECHO_SUBST_MSG} "[subst.mk] WARNING: Ignoring non-text file \"$$file\"." 1>&2; \
                fi;                                                     \
        done
 .endfor



Home | Main Index | Thread Index | Old Index