diff options
author | 2014-03-13 13:48:37 +0100 | |
---|---|---|
committer | 2014-03-13 13:48:37 +0100 | |
commit | a39be3311dee653baae716781f189e06aa4a99b9 (patch) | |
tree | 47464834195bb2b7c1fc50f51ec345a6af811d97 | |
parent | Version 1.15 released. (diff) | |
download | emacs-tools-a39be3311dee653baae716781f189e06aa4a99b9.tar.gz emacs-tools-a39be3311dee653baae716781f189e06aa4a99b9.tar.bz2 emacs-tools-a39be3311dee653baae716781f189e06aa4a99b9.zip |
Rename variable "extension" to "suffix" throughout. Adjust quoting.
-rw-r--r-- | ctags.eselect | 12 | ||||
-rw-r--r-- | emacs.eselect | 12 | ||||
-rw-r--r-- | 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 |