From: "Ulrich Mueller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/emacs-tools:eselect-emacs commit in: /
Date: Mon, 1 Apr 2013 12:21:13 +0000 (UTC) [thread overview]
Message-ID: <1364818895.bab507676f7c22f94e4457b7aafb5d53c26401c3.ulm@gentoo> (raw)
commit: bab507676f7c22f94e4457b7aafb5d53c26401c3
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 1 12:21:35 2013 +0000
Commit: Ulrich Mueller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Apr 1 12:21:35 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=bab50767
Don't use braces for positional parameters.
---
ctags.eselect | 6 +++---
emacs.eselect | 10 +++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/ctags.eselect b/ctags.eselect
index 9db3f9c..30c227d 100644
--- a/ctags.eselect
+++ b/ctags.eselect
@@ -59,14 +59,14 @@ remove_symlinks() {
set_bin_symlinks() {
# Set symlink to binary
- local target=${1}
+ local target=$1
ln -s "${target}" "${EROOT}/usr/bin/${CTAGS}" \
|| die "Couldn't set ${target} ${EROOT}/usr/bin/${CTAGS} symlink"
}
set_man_symlinks() {
# Set symlink to man page
- local target=${1} extension i
+ local target=$1 extension i
for i in "${EROOT}"/usr/share/man/man1/${target}.1*; do
if [[ -f ${i} ]]; then
# target file exists; determine compress extension
@@ -85,7 +85,7 @@ set_symlinks() {
# numeric index, find the target's name
targets=( $(find_targets) )
[[ ${target} -ge 1 && ${target} -le ${#targets[@]} ]] \
- || die -q "Number out of range: ${1}"
+ || die -q "Number out of range: $1"
target=${targets[target-1]}
fi
diff --git a/emacs.eselect b/emacs.eselect
index 6ac68d2..3ed6e06 100644
--- a/emacs.eselect
+++ b/emacs.eselect
@@ -64,7 +64,7 @@ remove_symlinks() {
set_bin_symlinks() {
# Set symlinks to binaries in /usr/bin/
- local target=${1} f
+ local target=$1 f
for f in ${BINARYLIST}; do
# set symlink only if target binary actually exists
if [[ -f ${EROOT}/usr/bin/${f}-${target} ]]; then
@@ -76,7 +76,7 @@ set_bin_symlinks() {
set_man_symlinks() {
# Set symlinks to man pages
- local target=${1} extension f i
+ local target=$1 extension f i
for f in ${MANPAGELIST}; do
for i in "${EROOT}"/usr/share/man/man1/${f}-${target}.1*; do
if [[ -f ${i} ]]; then
@@ -97,13 +97,13 @@ set_symlinks() {
# numeric index, find the target's name
targets=( $(find_targets) )
[[ ${target} -ge 1 && ${target} -le ${#targets[@]} ]] \
- || die -q "Number out of range: ${1}"
+ || die -q "Number out of range: $1"
target=${targets[target-1]}
fi
# is the target valid, i.e. does an Emacs binary with this name exist?
[[ -f ${EROOT}/usr/bin/${target} ]] \
- || die -q "Target \"${1}\" doesn't appear to be valid!"
+ || die -q "Target \"$1\" doesn't appear to be valid!"
echo "Switching emacs to ${target} ..."
remove_symlinks || die -q "Couldn't remove existing symlink"
@@ -221,7 +221,7 @@ do_set() {
die -q "${EROOT}/usr/bin/emacs exists but is not a symlink"
fi
- set_symlinks "${1}" || die -q "Couldn't set a new symlink"
+ set_symlinks "$1" || die -q "Couldn't set a new symlink"
# ctags symlinks are handled in an own module now
do_action ctags update
next reply other threads:[~2013-04-01 12:21 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-01 12:21 Ulrich Mueller [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-05 20:59 [gentoo-commits] proj/emacs-tools:eselect-emacs commit in: / Ulrich Müller
2023-08-21 6:31 Ulrich Müller
2021-08-02 8:05 Ulrich Müller
2021-07-31 17:39 Ulrich Müller
2018-09-16 14:50 Ulrich Müller
2014-12-23 9:55 Ulrich Müller
2014-12-19 19:03 Ulrich Müller
2014-12-19 7:28 Ulrich Müller
2014-12-19 7:28 Ulrich Müller
2014-12-19 7:28 Ulrich Müller
2014-12-19 7:28 Ulrich Müller
2014-12-19 7:28 Ulrich Müller
2014-10-28 18:50 Ulrich Müller
2014-04-08 13:13 Ulrich Müller
2014-03-18 8:51 Ulrich Müller
2014-03-13 16:34 Ulrich Müller
2014-03-13 13:49 Ulrich Müller
2014-03-13 13:15 Ulrich Müller
2014-03-13 13:15 Ulrich Müller
2014-02-17 21:38 Ulrich Müller
2014-02-17 21:38 Ulrich Müller
2014-02-17 21:38 Ulrich Müller
2014-02-17 17:46 Ulrich Müller
2012-06-22 16:24 Ulrich Mueller
2012-06-22 16:24 Ulrich Mueller
2012-06-22 16:24 Ulrich Mueller
2012-06-22 15:53 Ulrich Mueller
2012-06-22 15:53 Ulrich Mueller
2012-05-06 18:47 Ulrich Mueller
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1364818895.bab507676f7c22f94e4457b7aafb5d53c26401c3.ulm@gentoo \
--to=ulm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox