Source-Changes-HG archive

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

[src/trunk]: src/share/mk Under "Failed to remove the following files from ${...



details:   https://anonhg.NetBSD.org/src/rev/73c13392aca4
branches:  trunk
changeset: 782754:73c13392aca4
user:      apb <apb%NetBSD.org@localhost>
date:      Sun Nov 18 19:52:40 2012 +0000

description:
Under "Failed to remove the following files from ${_d}:",
print one file name per line, indented to make the list more visible.

diffstat:

 share/mk/bsd.clean.mk |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (25 lines):

diff -r 4dd865605ff2 -r 73c13392aca4 share/mk/bsd.clean.mk
--- a/share/mk/bsd.clean.mk     Sun Nov 18 19:48:29 2012 +0000
+++ b/share/mk/bsd.clean.mk     Sun Nov 18 19:52:40 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.clean.mk,v 1.5 2011/11/22 18:25:48 apb Exp $
+# $NetBSD: bsd.clean.mk,v 1.6 2012/11/18 19:52:40 apb Exp $
 
 # <bsd.clean.mk>
 #
@@ -65,10 +65,12 @@
            (cd ${_d} && rm -f ${.ALLSRC:@v@${${v}}@} || true) }
 .if "${MKCLEANVERIFY}" == "yes"
        @${"${.ALLSRC:@v@${${v}:M*}@:Q}" == "":?true: \
-           bad="\$(cd ${_d} && ls -d ${.ALLSRC:@v@${${v}}@} 2>/dev/null)"; \
+           bad="\$(cd ${_d} && ls -1d ${.ALLSRC:@v@${${v}}@} 2>/dev/null)"; \
            if test -n "\$bad"; then \
-               echo "Failed to remove files from ${_d}:" ; \
-               echo "\$bad" ; \
+               echo "Failed to remove the following files from ${_d}:" ; \
+               echo "\$bad" | while read file ; do \
+                   echo "      \$file" ; \
+               done ; \
                false ; \
            fi }
 .endif



Home | Main Index | Thread Index | Old Index