From: "Ulrich Mueller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/emacs-tools:emacs-updater commit in: /
Date: Sat, 9 Mar 2013 12:31:09 +0000 (UTC) [thread overview]
Message-ID: <1362828315.e6304fcfd6b0b4fda10289d303b36a7164adf93d.ulm@gentoo> (raw)
commit: e6304fcfd6b0b4fda10289d303b36a7164adf93d
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 9 11:25:15 2013 +0000
Commit: Ulrich Mueller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Mar 9 11:25:15 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=e6304fcf
Remove unneccesary quoting.
* emacs-updater: Remove unneccesary quoting.
---
ChangeLog | 4 ++++
emacs-updater | 26 +++++++++++++-------------
2 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 72cb580..a17828a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-03-09 Ulrich Müller <ulm@gentoo.org>
+
+ * emacs-updater: Remove unneccesary quoting.
+
2012-10-11 Ulrich Müller <ulm@gentoo.org>
* Version 1.10 released.
diff --git a/emacs-updater b/emacs-updater
index 21329d0..ac42692 100755
--- a/emacs-updater
+++ b/emacs-updater
@@ -61,7 +61,7 @@ usage() {
X
X -- OPTION... Pass additional options to package manager
EOF
- exit ${1}
+ exit $1
}
version() {
@@ -113,7 +113,7 @@ eval set -- "${OPTIONS}"
while true
do
- case "${1}" in
+ case $1 in
-h|--help) usage 0 ;;
--version) version ;;
-b|--batch) BATCH="true"; shift ;;
@@ -125,7 +125,7 @@ do
-a|--action)
ACTIONS=
for action in ${2/,/ }; do
- case "${action}" in
+ case ${action} in
sitedir|rebuild|all)
ACTIONS="${ACTIONS}${ACTIONS:+ }${action}"
;;
@@ -138,27 +138,27 @@ do
shift 2
;;
-P|--package-manager)
- case "${2}" in
+ case $2 in
auto|automatic) PM_COMMAND=pm_auto ;;
portage|pkgcore|paludis)
- if ! have_${2}; then
- echo "Package manager '${2}' not found!"
+ if ! have_$2; then
+ echo "Package manager '$2' not found!"
exit 22
fi
- PM_COMMAND=pm_${2}
+ PM_COMMAND=pm_$2
;;
*)
- echo "Package manager '${2}' not known!"
+ echo "Package manager '$2' not known!"
usage 21
;;
esac
shift 2
;;
- --package-manager-command) PM_COMMAND=${2}; shift 2 ;;
+ --package-manager-command) PM_COMMAND=$2; shift 2 ;;
--) shift; PM_EXTRAOPTS=( "$@" ); break ;;
*)
# this should not happen; getopt should return bad status
- echo "Invalid option '${1}' given!"
+ echo "Invalid option '$1' given!"
usage 22
;;
esac
@@ -202,7 +202,7 @@ emacs_version() {
# Get Emacs version from byte-compiled file
bytecomp_version() {
- sed -n '/^[^;]/q;s/\.$//;s/.*[Ee]macs version \([0-9].*\)/\1/p' "${1}"
+ sed -n '/^[^;]/q;s/\.$//;s/.*[Ee]macs version \([0-9].*\)/\1/p' "$1"
}
action_sitedir() {
@@ -239,7 +239,7 @@ action_rebuild() {
if [ -z "${MAJOR}" -a "${version%.*}" != "${active%.*}" ] \
|| [ "${version%%.*}" != "${active%%.*}" ] \
- || [ "${1}" = all ]
+ || [ "$1" = all ]
then
echo "Found ${elc##*/} (compiled by Emacs ${version})"
echo "${elc}" >> "${TMPFILE}"
@@ -311,7 +311,7 @@ else
echo -n "${BOLD}Remerge packages?${NORMAL} [${GREEN}Yes${NORMAL}/${RED}No${NORMAL}] "
read choice
echo
- case "${choice}" in
+ case ${choice} in
y*|Y*|"") ;;
*) warning "Quitting."; exit 10 ;;
esac
next reply other threads:[~2013-03-09 12:31 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-09 12:31 Ulrich Mueller [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-09 18:36 [gentoo-commits] proj/emacs-tools:emacs-updater commit in: / Ulrich Müller
2024-12-09 9:45 Ulrich Müller
2024-12-07 8:01 Ulrich Müller
2024-06-05 14:08 Ulrich Müller
2024-05-02 16:52 Ulrich Müller
2024-05-02 16:52 Ulrich Müller
2024-05-02 16:52 Ulrich Müller
2024-05-02 16:52 Ulrich Müller
2023-09-25 18:54 Ulrich Müller
2023-09-25 18:47 Ulrich Müller
2019-08-30 22:02 Ulrich Müller
2019-08-30 22:02 Ulrich Müller
2018-12-09 22:37 Ulrich Müller
2018-09-16 14:50 Ulrich Müller
2016-06-08 6:53 Ulrich Müller
2016-06-07 22:20 Ulrich Müller
2016-06-07 13:06 Ulrich Müller
2016-06-07 12:50 Ulrich Müller
2016-06-07 12:50 Ulrich Müller
2014-06-05 17:07 Ulrich Müller
2014-06-05 16:43 Ulrich Müller
2014-05-20 6:49 Ulrich Müller
2014-05-19 18:14 Ulrich Müller
2014-05-19 18:14 Ulrich Müller
2013-08-09 13:57 Ulrich Mueller
2013-03-20 17:03 Ulrich Mueller
2013-03-20 16:54 Ulrich Mueller
2013-03-12 18:55 Ulrich Mueller
2013-03-12 18:55 Ulrich Mueller
2013-03-12 18:55 Ulrich Mueller
2013-03-11 11:27 Ulrich Mueller
2013-03-11 10:15 Ulrich Mueller
2013-03-11 9:43 Ulrich Mueller
2013-03-11 8:23 Ulrich Mueller
2013-03-09 12:31 Ulrich Mueller
2013-03-09 12:31 Ulrich Mueller
2012-10-11 8:20 Ulrich Mueller
2012-10-11 8:20 Ulrich Mueller
2012-10-08 20:59 Ulrich Mueller
2012-10-08 20:45 Ulrich Mueller
2012-05-06 18:47 Ulrich Mueller
2012-05-06 18:14 Ulrich Mueller
2012-05-06 16:07 [gentoo-commits] proj/emacs-tools:backups/emacs-updater@1480 " Sebastian Pipping
2012-05-06 16:06 ` [gentoo-commits] proj/emacs-tools:emacs-updater " Sebastian Pipping
2012-05-06 16:07 [gentoo-commits] proj/emacs-tools:backups/emacs-updater@1480 " Sebastian Pipping
2012-05-06 16:06 ` [gentoo-commits] proj/emacs-tools:emacs-updater " 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=1362828315.e6304fcfd6b0b4fda10289d303b36a7164adf93d.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