Source-Changes-HG archive

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

[src/trunk]: src/etc/mtree Describe in a comment what the emit_dist_file targ...



details:   https://anonhg.NetBSD.org/src/rev/440adc49c923
branches:  trunk
changeset: 754304:440adc49c923
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Tue Apr 27 03:01:25 2010 +0000

description:
Describe in a comment what the emit_dist_file target is for.

Under some circumstances, ${TOOL_CAT} may refer to an executable
that does not exist.  As a stopgap fix, use cat(1) instead of
${TOOL_CAT} in emit_dist_file.

diffstat:

 etc/mtree/Makefile |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 435a4d783d54 -r 440adc49c923 etc/mtree/Makefile
--- a/etc/mtree/Makefile        Tue Apr 27 02:51:04 2010 +0000
+++ b/etc/mtree/Makefile        Tue Apr 27 03:01:25 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.16 2010/04/23 19:21:08 dyoung Exp $
+#      $NetBSD: Makefile,v 1.17 2010/04/27 03:01:25 dyoung Exp $
 
 .include <bsd.own.mk>
 
@@ -39,8 +39,12 @@
 TOOL_MTREE.unpriv=     -W
 .endif
 
+# postinstall(8) invokes this target to produce the right
+# /etc/mtree/NetBSD.dist content without duplicating logic from
+# the Makefile.
+#
 emit_dist_file:
-       ${TOOL_CAT} ${.CURDIR}/NetBSD.dist.base ${EXTRA_DIST_FILES}
+       cat ${.CURDIR}/NetBSD.dist.base ${EXTRA_DIST_FILES}
 
 distrib-dirs: .PHONY check_DESTDIR NetBSD.dist
 .if !defined(DISTRIBUTION_DONE)                                                # {



Home | Main Index | Thread Index | Old Index