From: "Ulrich Mueller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/emacs-tools:eselect-emacs-1.1 commit in: /
Date: Fri, 22 Jun 2012 17:29:22 +0000 (UTC) [thread overview]
Message-ID: <1181069706.68e0de6a0646fd5803f57da93118ab0b4435f2a7.ulm@gentoo> (raw)
commit: 68e0de6a0646fd5803f57da93118ab0b4435f2a7
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 5 18:55:06 2007 +0000
Commit: Ulrich Mueller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Jun 5 18:55:06 2007 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=68e0de6a
Some trivial reformatting, mainly break long lines.
svn path=/emacs-extra/eselect-emacs/; revision=369
---
emacs.eselect | 27 +++++++++++++++------------
1 files changed, 15 insertions(+), 12 deletions(-)
diff --git a/emacs.eselect b/emacs.eselect
index 4c0ac9d..6443de4 100644
--- a/emacs.eselect
+++ b/emacs.eselect
@@ -12,13 +12,14 @@
#
# Behaviour:
# do_show():
-# Checks if /usr/bin/emacs is a link and if the target exists,
-# if yes, it outputs the currently linked Emacs version.
-# If it is no symlink, the user is told so, the same if there is
-# no /usr/bin/emacs or the target does not exist.
+# Checks if /usr/bin/emacs is a link and if the target exists,
+# if yes, it outputs the currently linked Emacs version.
+# If it is no symlink, the user is told so, the same if there is
+# no /usr/bin/emacs or the target does not exist.
# do_list(): List all available versions of GNU Emacs
# do_set(): Set a version to be target of the symlink.
-# do_update(): Set the target to the highest version available (optionally: only if not set)
+# do_update(): Set the target to the highest version available
+# (optionally: only if not set)
DESCRIPTION="Manage /usr/bin/emacs version"
MAINTAINER="emacs@gentoo.org"
@@ -48,7 +49,8 @@ set_infopath() {
}
remove_symlinks() {
- # Remove existing symlinks to binaries, man pages, and the env file (own function)
+ # Remove existing symlinks to binaries, man pages,
+ # and the env file (own function)
local f
rm -f "${ROOT}"/usr/bin/emacs
for f in ${BINARYLIST}; do
@@ -173,10 +175,10 @@ do_list() {
if [[ -n ${targets[@]} ]]; then
for (( i = 0; i < ${#targets[@]}; i = i + 1 )); do
+ # Display a star to indicate the currently chosen version
[[ ${targets[${i}]} = \
- $(basename $(canonicalise "${ROOT}/usr/bin/emacs") ) ]] &&
- # Display a star to indicate the currently chosen version
- targets[${i}]="${targets[${i}]} $(highlight '*')"
+ $(basename $(canonicalise "${ROOT}/usr/bin/emacs") ) ]] \
+ && targets[${i}]="${targets[${i}]} $(highlight '*')"
done
write_list_start "Available GNU Emacs symlink targets:"
write_numbered_list "${targets[@]}"
@@ -205,7 +207,8 @@ do_set() {
[[ -n "${2}" ]] && die -q "Too many parameters"
test_for_root
- if [[ -e "${ROOT}/usr/bin/emacs" ]] && ! [[ -L "${ROOT}/usr/bin/emacs" ]]; then
+ if [[ -e "${ROOT}/usr/bin/emacs" ]] \
+ && ! [[ -L "${ROOT}/usr/bin/emacs" ]]; then
die -q "Sorry, ${ROOT}/usr/bin/emacs exists but is not a symlink"
fi
@@ -223,8 +226,8 @@ describe_update_options() {
}
do_update() {
- [[ -z "${1}" || ( -z "${2}" && "${1}" == "--if-unset" ) ]] ||
- die -q "Usage error"
+ [[ -z "${1}" || ( -z "${2}" && "${1}" == "--if-unset" ) ]] \
+ || die -q "Usage error"
test_for_root
if [[ -L "${ROOT}/usr/bin/emacs" ]]; then
next reply other threads:[~2012-06-22 17:31 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-22 17:29 Ulrich Mueller [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-06-22 17:29 [gentoo-commits] proj/emacs-tools:eselect-emacs-1.1 commit in: / Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
2012-06-22 17:29 Ulrich Mueller
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=1181069706.68e0de6a0646fd5803f57da93118ab0b4435f2a7.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