Blame subr/pkg_fetch_distclean.subr

Lucio Andrés Illanes Albornoz (arab, vxp) a44f58
#
Lucio Andrés Illanes Albornoz (arab, vxp) a44f58
# set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) a44f58
#
Lucio Andrés Illanes Albornoz (arab, vxp) a44f58
Lucio Andrés Illanes Albornoz (arab, vxp) 32ad21
pkg_fetch_distclean() {
Lucio Andrés Illanes Albornoz (arab, vxp) a44f58
	if [ "$(stat -c %i "${PKG_BASE_DIR}")"	\
Lucio Andrés Illanes Albornoz (arab, vxp) a44f58
	!=   "$(stat -c %i "${WORKDIR}")" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 32ad21
		ex_build_fileop cd "${WORKDIR}";
Lucio Andrés Illanes Albornoz (arab, vxp) 32ad21
		ex_build_fileop rm "${PKG_BASE_DIR}";
Lucio Andrés Illanes Albornoz (arab, vxp) 32ad21
		ex_build_fileop mkdir "${PKG_BASE_DIR}";
Lucio Andrés Illanes Albornoz (arab, vxp) 32ad21
		ex_build_fileop cd "${PKG_BASE_DIR}";
Lucio Andrés Illanes Albornoz (arab, vxp) a44f58
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) a44f58
};
Lucio Andrés Illanes Albornoz (arab, vxp) a44f58
Lucio Andrés Illanes Albornoz (arab, vxp) a44f58
# vim:filetype=sh