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.
This commit is contained in:
martin 2015-07-01 12:40:07 +00:00
parent 5fbfc68952
commit c365a0b724

View File

@ -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