summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_distclean.subr
blob: aae22162418044082a9150e793310fe8a8b1e7b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#
# . ./build.vars and set -o errexit -o noglob are assumed.
# See warning at the top of build.vars.
#

pkg_distclean() {
	if [ "${PKG_SUBDIR}" != "${PKG_BUILD_DIR}" ]; then
		secure_rm ${PKG_BUILD_DIR};
		insecure_mkdir ${PKG_BUILD_DIR};
	fi;
	set_build_script_done distclean -configure;
};

# vim:filetype=sh