midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame subr/pkg_clean.subr

Lucio Andrés Illanes Albornoz (arab, vxp) 19ab70
#
Lucio Andrés Illanes Albornoz (arab, vxp) 19ab70
# set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 19ab70
#
Lucio Andrés Illanes Albornoz (arab, vxp) 19ab70
Lucio Andrés Illanes Albornoz (arab, vxp) 19ab70
pkg_clean() {
Lucio Andrés Illanes Albornoz 907bd3
	local _dir="";
Lucio Andrés Illanes Albornoz (arab, vxp) 4cc1cf
	if [ -n "${PKG_DEPS_BASE}" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 4cc1cf
		return 0;
Lucio Andrés Illanes Albornoz (arab, vxp) 4cc1cf
	fi;
Lucio Andrés Illanes Albornoz 0eaee4
	if ex_rtl_lmatch "${ARG_CLEAN_BUILDS}" , build; then
Lucio Andrés Illanes Albornoz 0eaee4
		ex_rtl_fileop rm "${PKG_BUILD_DIR}";
Lucio Andrés Illanes Albornoz 0eaee4
	fi;
Lucio Andrés Illanes Albornoz 0eaee4
	if ex_rtl_lmatch "${ARG_CLEAN_BUILDS}" , dest; then
Lucio Andrés Illanes Albornoz 0eaee4
		ex_rtl_fileop rm "${PKG_DESTDIR}";
Lucio Andrés Illanes Albornoz 0eaee4
	fi;
Lucio Andrés Illanes Albornoz 0eaee4
	if ex_rtl_lmatch "${ARG_CLEAN_BUILDS}" , src; then
Lucio Andrés Illanes Albornoz 0eaee4
		ex_rtl_fileop rm "${PKG_BASE_DIR}/${PKG_SUBDIR}";
Lucio Andrés Illanes Albornoz 0eaee4
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 19ab70
};
Lucio Andrés Illanes Albornoz (arab, vxp) 19ab70
Lucio Andrés Illanes Albornoz (arab, vxp) 19ab70
# vim:filetype=sh