pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk When a SUBST change leaves a file as-is, print an i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/de2c8f54f8f1
branches:  trunk
changeset: 523694:de2c8f54f8f1
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Jan 11 12:12:12 2007 +0000

description:
When a SUBST change leaves a file as-is, print an informational message.
For all messages, the current SUBST_CLASS is printed, too.

diffstat:

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

diffs (28 lines):

diff -r 2c5efb02b35d -r de2c8f54f8f1 mk/subst.mk
--- a/mk/subst.mk       Thu Jan 11 12:11:03 2007 +0000
+++ b/mk/subst.mk       Thu Jan 11 12:12:12 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: subst.mk,v 1.39 2007/01/03 23:35:13 rillig Exp $
+# $NetBSD: subst.mk,v 1.40 2007/01/11 12:12:12 rillig Exp $
 #
 # This Makefile fragment implements a general text replacement facility.
 # Package makefiles define a ``class'', for each of which a particular
@@ -85,15 +85,16 @@
                                ${CHMOD} +x "$$file";                   \
                        fi;                                             \
                        if ${CMP} -s "$$tmpfile" "$$file"; then         \
+                               ${INFO_MSG} "[subst.mk:${_class_}] Nothing changed in $$file."; \
                                ${MV} -f "$$tmpfile" "$$file";          \
                        else                                            \
                                ${SUBST_POSTCMD.${_class_}};            \
                                ${ECHO} "$$file" >> ${.TARGET};         \
                        fi;                                             \
                elif ${TEST} -f "$$file"; then                          \
-                       ${WARNING_MSG} "[subst.mk] Ignoring non-text file \"$$file\"." 1>&2; \
+                       ${WARNING_MSG} "[subst.mk:${_class_}] Ignoring non-text file \"$$file\"."; \
                else                                                    \
-                       ${WARNING_MSG} "[subst.mk] Ignoring non-existent file \"$$file\"." 1>&2; \
+                       ${WARNING_MSG} "[subst.mk:${_class_}] Ignoring non-existent file \"$$file\"."; \
                fi;                                                     \
        done
        ${_PKG_SILENT}${_PKG_DEBUG} set -e;                             \



Home | Main Index | Thread Index | Old Index