Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone
Blob Blame History Raw
#
# set -o errexit -o noglob are assumed.
#

pkg_clean() {
	local _dir;
	if [ -n "${PKG_DEPS_BASE}" ]; then
		return 0;
	fi;
	for _dir in ${ARG_CLEAN_BUILDS}; do
		case "${_dir}" in
		build)	ex_rtl_fileop rm "${PKG_BUILD_DIR}"; ;;
		src)	ex_rtl_fileop rm "${PKG_BASE_DIR}/${PKG_SUBDIR}"; ;;
		dest)	ex_rtl_fileop rm "${PKG_DESTDIR}"; ;;
		*)	return 1; ;;
		esac;
	done;
};

# vim:filetype=sh