From: "Sebastian Pipping" <sping@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/emacs-tools:backups/emacs-updater@1480 commit in: /
Date: Sun, 6 May 2012 16:07:23 +0000 (UTC) [thread overview]
Message-ID: <1251312658.f660dd132fdb09702ac56d79d0a3b06805dc609c.sping@gentoo> (raw)
Message-ID: <20120506160723.DblsNHRQvV3m4c3ueVqD3-7Ju3f56YS4Ebk4sa-14b0@z> (raw)
commit: f660dd132fdb09702ac56d79d0a3b06805dc609c
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 26 18:50:58 2009 +0000
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Wed Aug 26 18:50:58 2009 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=f660dd13
New --major option.
svn path=/emacs-updater/; revision=1390
---
ChangeLog | 5 +++--
emacs-updater | 17 ++++++++++++++---
emacs-updater.8 | 3 +++
3 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 358e64b..7b18317 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,8 @@
2009-08-25 Ulrich Mueller <ulm@gentoo.org>
- * emacs-updater (OPTIONS): New options --orphans|-o and --version.
- (ORPHANS): New variable.
+ * emacs-updater (OPTIONS): New options --major|-m, --orphans|-o,
+ and --version.
+ (MAJOR, ORPHANS): New variables.
(version): New function.
(usage): Update help text.
* emacs-updater.8: Describe new options.
diff --git a/emacs-updater b/emacs-updater
index 8832fed..8027f27 100755
--- a/emacs-updater
+++ b/emacs-updater
@@ -19,6 +19,7 @@ PM_COMMAND=pm_auto
# Other default variable settings
EXACT=
+MAJOR=
NOCOLOUR=
ORPHANS=
PRETEND=
@@ -39,6 +40,8 @@ usage() {
X byte-compiled Elisp files
X (default: sitedir,rebuild)
X -e, --exact match exact versions when remerging packages
+ X -m, --major use only the major version when comparing
+ X Emacs version numbers
X -n, --nocolour, --nocolor
X disable colour in output
X -o, --orphans list orphan files
@@ -96,8 +99,8 @@ pm_auto() {
}
# Read in all command-line options and force English output
-OPTIONS=$(LC_ALL=C getopt -o a:ehnopP: \
- --long action:,exact,help,nocolour,nocolor,orphans,pretend \
+OPTIONS=$(LC_ALL=C getopt -o a:ehmnopP: \
+ --long action:,exact,help,major,nocolour,nocolor,orphans,pretend \
--long package-manager:,package-manager-command:,version \
-n 'emacs-updater' -- "$@")
[ $? -eq 0 ] || usage 1
@@ -110,6 +113,7 @@ do
-h|--help) usage 0 ;;
--version) version ;;
-e|--exact) EXACT="true"; shift 1 ;;
+ -m|--major) MAJOR="true"; shift 1 ;;
-o|--orphans) ORPHANS="true"; shift 1 ;;
-p|--pretend) PRETEND="true"; shift 1 ;;
-n|--nocolour|--nocolor) NOCOLOUR="true"; shift 1 ;;
@@ -147,6 +151,11 @@ do
;;
--package-manager-command) PM_COMMAND=${2}; shift 2 ;;
--) shift; break ;;
+ *)
+ # this should not happen; getopt should return bad status
+ echo "Invalid option '${1}' given!"
+ usage 22
+ ;;
esac
done
@@ -223,7 +232,9 @@ action_rebuild() {
version=$(bytecomp_version "${elc}")
version=${version:-unknown}
- if [ "${version}" != "${active}" ] || [ "${1}" = all ]; then
+ if [ -z "${MAJOR}" -a "${version}" != "${active}" ] \
+ || [ "${version%%.*}" != "${active%%.*}" ] \
+ || [ "${1}" = all ]; then
echo "Found ${elc##*/} (compiled by Emacs version ${version})"
echo "${elc}" >> "${TMPFILE}"
else
diff --git a/emacs-updater.8 b/emacs-updater.8
index 3789882..b05fcae 100644
--- a/emacs-updater.8
+++ b/emacs-updater.8
@@ -33,6 +33,9 @@ Rebuild all packages that have byte-compiled Elisp files
.B -e, --exact
Match exact versions when remerging packages
.TP
+.B -m, --major
+Use only the major version when comparing Emacs version numbers
+.TP
.B -n, --nocolour, --nocolor
Disable colour in output
.TP
next reply other threads:[~2012-05-06 16:24 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-06 16:06 Sebastian Pipping [this message]
2012-05-06 16:07 ` [gentoo-commits] proj/emacs-tools:backups/emacs-updater@1480 commit in: / Sebastian Pipping
-- strict thread matches above, loose matches on Subject: below --
2024-12-09 18:36 [gentoo-commits] proj/emacs-tools:emacs-updater " 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
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
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=1251312658.f660dd132fdb09702ac56d79d0a3b06805dc609c.sping@gentoo \
--to=sping@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