Blame subr/pkg_distclean.subr

Lucio Andrés Illanes Albornoz (arab, vxp) 5b02e1
#
Lucio Andrés Illanes Albornoz (arab, vxp) 5b02e1
# . ./build.vars and set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 5b02e1
# See warning at the top of build.vars.
Lucio Andrés Illanes Albornoz (arab, vxp) 5b02e1
#
Lucio Andrés Illanes Albornoz (arab, vxp) 5b02e1
Lucio Andrés Illanes Albornoz (arab, vxp) 5b02e1
pkg_distclean() {
Lucio Andrés Illanes Albornoz (arab, vxp) 5b02e1
	if [ "${PKG_SUBDIR}" != "${PKG_BUILD_DIR}" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		build_fileop rm ${PKG_BUILD_DIR};
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		build_fileop mkdir ${PKG_BUILD_DIR};
Lucio Andrés Illanes Albornoz (arab, vxp) 5b02e1
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 5b02e1
	set_build_script_done distclean -configure;
Lucio Andrés Illanes Albornoz (arab, vxp) 5b02e1
};
Lucio Andrés Illanes Albornoz (arab, vxp) 5b02e1
Lucio Andrés Illanes Albornoz (arab, vxp) 5b02e1
# vim:filetype=sh