commit: a39be3311dee653baae716781f189e06aa4a99b9
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 13 12:48:37 2014 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Mar 13 12:48:37 2014 +0000
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=a39be331
Rename variable "extension" to "suffix" throughout. Adjust quoting.
---
ctags.eselect | 12 ++++++------
emacs.eselect | 12 ++++++------
gnuclient.eselect | 12 ++++++------
3 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/ctags.eselect b/ctags.eselect
index 4c1641f..c857849 100644
--- a/ctags.eselect
+++ b/ctags.eselect
@@ -66,13 +66,13 @@ set_bin_symlinks() {
set_man_symlinks() {
# Set symlink to man page
- local target=$1 extension i
- for i in "${EROOT}"/usr/share/man/man1/${target}.1*; do
+ local target=$1 suffix i
+ for i in "${EROOT}/usr/share/man/man1/${target}.1"*; do
if [[ -f ${i} ]]; then
- # target file exists; determine compress extension
- extension=${i##*/${target}.1}
- ln -s "${target}.1${extension}" \
-
"${EROOT}/usr/share/man/man1/${CTAGS}.1${extension}"
+ # target file exists; determine compression suffix
+ suffix=${i##*/"${target}.1"}
+ ln -s "${target}.1${suffix}" \
+
"${EROOT}/usr/share/man/man1/${CTAGS}.1${suffix}"
fi
done
}
diff --git a/emacs.eselect b/emacs.eselect
index 2834c37..2c656b7 100644
--- a/emacs.eselect
+++ b/emacs.eselect
@@ -76,14 +76,14 @@ set_bin_symlinks() {
set_man_symlinks() {
# Set symlinks to man pages
- local target=$1 extension f i
+ local target=$1 suffix f i
for f in ${MANPAGELIST}; do
- for i in "${EROOT}"/usr/share/man/man1/${f}-${target}.1*; do
+ for i in "${EROOT}/usr/share/man/man1/${f}-${target}.1"*; do
if [[ -f ${i} ]]; then
- # target file exists; determine compress
extension
- extension=${i##*/${f}-${target}.1}
- ln -s "${f}-${target}.1${extension}" \
-
"${EROOT}/usr/share/man/man1/${f}.1${extension}"
+ # target file exists; determine compression
suffix
+ suffix=${i##*/"${f}-${target}.1"}
+ ln -s "${f}-${target}.1${suffix}" \
+
"${EROOT}/usr/share/man/man1/${f}.1${suffix}"
fi
done
done
diff --git a/gnuclient.eselect b/gnuclient.eselect
index d6e9374..258c7ff 100644
--- a/gnuclient.eselect
+++ b/gnuclient.eselect
@@ -59,14 +59,14 @@ set_bin_symlinks() {
set_man_symlinks() {
# Set symlinks to man pages
- local target=${1#gnuclient-} extension f i
+ local target=${1#gnuclient-} suffix f i
for f in ${MANPAGELIST}; do
- for i in "${EROOT}"/usr/share/man/man1/${f}-${target}.1*; do
+ for i in "${EROOT}/usr/share/man/man1/${f}-${target}.1"*; do
if [[ -f ${i} ]]; then
- # target file exists; determine compress
extension
- extension=${i##*/${f}-${target}.1}
- ln -s "${f}-${target}.1${extension}" \
-
"${EROOT}/usr/share/man/man1/${f}.1${extension}"
+ # target file exists; determine compression
suffix
+ suffix=${i##*/"${f}-${target}.1"}
+ ln -s "${f}-${target}.1${suffix}" \
+
"${EROOT}/usr/share/man/man1/${f}.1${suffix}"
fi
done
done