summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_setup_distclean.subr
blob: fc5999c8df50123c9145efd4c998761a321a1b0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#
# set -o errexit -o noglob are assumed.
#

pkg_setup_distclean() {
	if [ "$(stat -c %i "${PKG_BASE_DIR}")"	\
	!=   "$(stat -c %i "${WORKDIR}")" ]; then
		build_fileop rm "${PKG_BASE_DIR}";
	fi;
};

# vim:filetype=sh