Lucio Andrés Illanes Albornoz (arab, vxp) 19ab70
#
Lucio Andrés Illanes Albornoz 2b85d0
# set +o errexit -o noglob is 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 2b85d0
	if [ "${PKG_NO_CLEAN:-0}" -eq 0 ]; then
Lucio Andrés Illanes Albornoz 2b85d0
		if ex_rtl_lmatch "${ARG_CLEAN_BUILDS}" "build" ","; then
Lucio Andrés Illanes Albornoz 2b85d0
			ex_rtl_fileop rm "${PKG_BUILD_DIR}" || return "${?}";
Lucio Andrés Illanes Albornoz 2b85d0
		fi;
Lucio Andrés Illanes Albornoz 2b85d0
		if ex_rtl_lmatch "${ARG_CLEAN_BUILDS}" "dest" ","; then
Lucio Andrés Illanes Albornoz 2b85d0
			ex_rtl_fileop rm "${PKG_DESTDIR}" || return "${?}";
Lucio Andrés Illanes Albornoz 2b85d0
		fi;
Lucio Andrés Illanes Albornoz 2b85d0
		if ex_rtl_lmatch "${ARG_CLEAN_BUILDS}" "src" ","; then
Lucio Andrés Illanes Albornoz 2b85d0
			ex_rtl_fileop rm "${PKG_BASE_DIR}/${PKG_SUBDIR}" || return "${?}";
Lucio Andrés Illanes Albornoz 2b85d0
		fi;
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