blob: b2bb8eeac2b443863cb3271926bd8a98ca519021 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#
# 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
|