blob: b122823e1c60ffe43227f288bb6eba1eb65f02d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#
# set +o errexit -o noglob is assumed.
#
pkg_clean() {
if [ "${PKG_NO_CLEAN:-0}" -eq 0 ]; then
if rtl_lmatch "${ARG_CLEAN_BUILDS}" "build" ","; then
rtl_fileop rm "${PKG_BUILD_DIR}" || return "${?}";
fi;
if rtl_lmatch "${ARG_CLEAN_BUILDS}" "dest" ","; then
rtl_fileop rm "${PKG_DESTDIR}" || return "${?}";
fi;
if rtl_lmatch "${ARG_CLEAN_BUILDS}" "src" ","; then
rtl_fileop rm "${PKG_BASE_DIR}/${PKG_SUBDIR}" || return "${?}";
fi;
fi;
};
# vim:filetype=sh
|