Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/postinstall Clean up the src/etc/mtree directory af...



details:   https://anonhg.NetBSD.org/src/rev/fad364ebb3b3
branches:  trunk
changeset: 809313:fad364ebb3b3
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Jul 01 12:40:07 2015 +0000

description:
Clean up the src/etc/mtree directory after using it to generate the mtree
spec file.
XXX this is fishy, we should find a better way.

diffstat:

 usr.sbin/postinstall/postinstall |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 895f2ec33135 -r fad364ebb3b3 usr.sbin/postinstall/postinstall
--- a/usr.sbin/postinstall/postinstall  Wed Jul 01 08:33:31 2015 +0000
+++ b/usr.sbin/postinstall/postinstall  Wed Jul 01 12:40:07 2015 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.193 2015/06/28 09:29:58 martin Exp $
+# $NetBSD: postinstall,v 1.194 2015/07/01 12:40:07 martin Exp $
 #
 # Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1180,6 +1180,8 @@
        else
                env AWK={$AWK:Q} ${MAKE} -s -C "${SRC_DIR}/etc/mtree" emit_dist_file > \
                    "${SCRATCHDIR}/NetBSD.dist"
+               ${MAKE} -s -C "${SRC_DIR}/etc/mtree" clean >/dev/null 2>&1
+                   "${SCRATCHDIR}/NetBSD.dist"
                MTREE_DIR="${SCRATCHDIR}"
        fi
        compare_dir "$1" "${MTREE_DIR}" "${DEST_DIR}/etc/mtree" 444 NetBSD.dist



Home | Main Index | Thread Index | Old Index