summaryrefslogtreecommitdiff
path: root/profiles/common
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2015-11-22 01:46:02 +0000
committerBertrand Jacquin <bertrand@jacquin.bzh>2015-11-22 01:50:08 +0000
commit52a50cb77bccc9957762b22e2b10ba1ed3fa054d (patch)
treeb8a9ed3e37d0198486086a970057e8f211c188c4 /profiles/common
parentmetadata: refresh cache (diff)
downloadportage-52a50cb77bccc9957762b22e2b10ba1ed3fa054d.tar.xz
profiles/common: Use consistent name while purging files
Diffstat (limited to 'profiles/common')
-rw-r--r--profiles/common/profile.bashrc38
1 files changed, 19 insertions, 19 deletions
diff --git a/profiles/common/profile.bashrc b/profiles/common/profile.bashrc
index ce00f6a0..9f6f848f 100644
--- a/profiles/common/profile.bashrc
+++ b/profiles/common/profile.bashrc
@@ -1,5 +1,5 @@
function __drop-nls-man-pages () {
- local -a _DIRS=(
+ local -a _FILES=(
/usr/share/man
/usr/share/postgresql-*/man
/usr/share/binutils-data/*/*/man
@@ -8,18 +8,18 @@ function __drop-nls-man-pages () {
/usr/lib*/php*/man
)
- local _dir
- for _dir in "${_DIRS[@]}" ; do
- if [[ ! -d "${_ed}/${_dir}" ]] ; then
+ local _file
+ for _file in "${_FILE[@]}" ; do
+ if [[ ! -d "${_ed}/${_file}" ]] ; then
continue
fi
if has noman ${FEATURES} ; then
- einfo "Removing ${_dir#${_ed}}"
- rm -rf "${_ed}/${_dir}"
+ einfo "Removing ${_file#${_ed}}"
+ rm -rf "${_ed}/${_file}"
else
# Drop non man? directories
- find "${_ed}${_dir}" \
+ find "${_ed}${_file}" \
-mindepth 1 -maxdepth 1 \
-type d \
-name 'man*' -prune -o -print |
@@ -57,7 +57,7 @@ function __drop-doc () {
return 0
fi
- local -a _DIRS=(
+ local -a _FILES=(
/opt/ekopath/docs
/usr/lib64/python*/site-packages/enum/doc
/usr/lib64/python*/site-packages/numpy/doc
@@ -73,19 +73,19 @@ function __drop-doc () {
/usr/share/vim/vimfiles/doc
)
- local _dir
- for _dir in ${_DIRS[@]} ; do
- if [[ ! -d "${_ed}/${_dir}" ]] ; then
+ local _file
+ for _file in ${_FILES[@]} ; do
+ if [[ ! -d "${_ed}/${_file}" ]] ; then
continue
fi
- einfo "Removing ${_dir}"
- rm -rf "${_ed}/${_dir}"
+ einfo "Removing ${_file}"
+ rm -rf "${_ed}/${_file}"
done
}
function __drop-unneeded () {
- local -a _PATH=(
+ local -a _FILES=(
/etc/*.sample
/etc/conf.d/pydoc*
/etc/elinks/*.sample
@@ -99,14 +99,14 @@ function __drop-unneeded () {
/usr/share/zsh/site-functions
)
- local _path
- for _path in ${_PATH[@]} ; do
- if [[ ! -e "${_ed}/${_path}" ]] ; then
+ local _file
+ for _file in ${_FILES[@]} ; do
+ if [[ ! -e "${_ed}/${_file}" ]] ; then
continue
fi
- einfo "Removing ${_path}"
- rm -rf "${_ed}/${_path}"
+ einfo "Removing ${_file}"
+ rm -rf "${_ed}/${_file}"
done
}