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

pkg_distclean() {
	if [ "${PKG_SUBDIR}" != "${PKG_BUILD_DIR}" ]; then
		build_fileop rm "${WORKDIR}/${PKG_BUILD_DIR}";
		build_fileop mkdir "${WORKDIR}/${PKG_BUILD_DIR}";
	fi;
};

# vim:filetype=sh