diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-11-29 14:47:58 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-11-29 14:47:58 +0000 |
commit | 9cec6722e1b28380f098f9d4639178f967f171ce (patch) | |
tree | 26d9ea435f57ef87d772b93ddb65347de4d95a4a /subr | |
parent | 62f752700dc88cb488ee2f480fbb88f2fc1cf155 (diff) | |
download | midipix_build-9cec6722e1b28380f098f9d4639178f967f171ce.tar.bz2 midipix_build-9cec6722e1b28380f098f9d4639178f967f171ce.tar.xz |
subr/ex_setup_subdirs.subr, vars/env.vars: fix -c (clean ${PREFIX}.)
Diffstat (limited to 'subr')
-rw-r--r-- | subr/ex_setup_subdirs.subr | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/subr/ex_setup_subdirs.subr b/subr/ex_setup_subdirs.subr index 5d74e15c..e6f0fbf9 100644 --- a/subr/ex_setup_subdirs.subr +++ b/subr/ex_setup_subdirs.subr @@ -3,13 +3,11 @@ # ex_setup_subdirs() { - local __; + local _pname; if [ ${ARG_CLEAN:-0} -eq 1 ]; then ex_log_msg info "-c specified, cleaning prefix..."; - for __ in ${CLEAR_PREFIX_DIRS}; do - if [ -e ${PREFIX}/${__} ]; then - build_rm ${PREFIX}/${__}; - fi; + for _pname in ${CLEAR_PREFIX_PATHS}; do + ex_build_fileop rm ${PREFIX}/${_pname}; done; fi; pkg_install_files "" \ |