Module Name: src
Committed By: martin
Date: Wed Jul 1 12:40:07 UTC 2015
Modified Files:
src/usr.sbin/postinstall: postinstall
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.193 -r1.194 src/usr.sbin/postinstall/postinstall
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/postinstall/postinstall
diff -u src/usr.sbin/postinstall/postinstall:1.193 src/usr.sbin/postinstall/postinstall:1.194
--- src/usr.sbin/postinstall/postinstall:1.193 Sun Jun 28 09:29:58 2015
+++ src/usr.sbin/postinstall/postinstall Wed Jul 1 12:40:07 2015
@@ -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 @@ do_mtree()
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