From: "Ulrich Mueller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/emacs-tools:ebuild-mode commit in: /
Date: Sun, 8 Sep 2013 10:28:48 +0000 (UTC) [thread overview]
Message-ID: <1378634844.4878c5e34325e563e75a97c0e3a20d12b58a58c6.ulm@gentoo> (raw)
commit: 4878c5e34325e563e75a97c0e3a20d12b58a58c6
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 8 10:07:24 2013 +0000
Commit: Ulrich Mueller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Sep 8 10:07:24 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=4878c5e3
keyword-generation.sh: Sort list of eclasses.
* keyword-generation.sh (ECLASSES): Strip filename suffix and sort
the list of eclasses.
---
ChangeLog | 1 +
keyword-generation.sh | 10 +++++-----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 74c6267..a8388bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
2013-09-08 Ulrich Müller <ulm@gentoo.org>
* keyword-generation.sh (OBSOLETE): Cleanup list.
+ (ECLASSES): Strip filename suffix and sort the list of eclasses.
2013-07-07 Ulrich Müller <ulm@gentoo.org>
diff --git a/keyword-generation.sh b/keyword-generation.sh
index 8718e46..373fc69 100644
--- a/keyword-generation.sh
+++ b/keyword-generation.sh
@@ -10,7 +10,7 @@
TMPFILE="$(mktemp ${TMPDIR:-/tmp}/keyword-generation.XXXXXX)"
ECLASSDIR="$(portageq portdir)/eclass"
-ECLASSES=$(cd ${ECLASSDIR}; ls *.eclass)
+ECLASSES=$(cd ${ECLASSDIR}; ls *.eclass | sed 's/\.eclass$//' | LC_ALL=C sort)
# Obsolete eclasses
OBSOLETE="bash-completion gems leechcraft ruby x-modular"
@@ -26,11 +26,11 @@ has() {
echo "Output in ${TMPFILE}"
for eclass in ${ECLASSES}; do
- has ${eclass%.eclass} ${OBSOLETE} && continue
- grep -q "^# @DEAD$" "${ECLASSDIR}/${eclass}" && continue
+ has ${eclass} ${OBSOLETE} && continue
+ file="${ECLASSDIR}/${eclass}.eclass"
+ grep -q "^# @DEAD$" "${file}" && continue
- functions=$(env -i bash -c \
- ". ${ECLASSDIR}/${eclass}; declare -F" 2>/dev/null \
+ functions=$(env -i bash -c ". ${file}; declare -F" 2>/dev/null \
| sed 's/.*[[:space:]]//;/^_/d;s/.*/"&"/')
[[ -z ${functions} ]] && continue
next reply other threads:[~2013-09-08 10:28 UTC|newest]
Thread overview: 74+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-08 10:28 Ulrich Mueller [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-09-16 16:28 [gentoo-commits] proj/emacs-tools:ebuild-mode commit in: / Ulrich Müller
2017-09-16 15:28 Ulrich Müller
2017-09-16 15:28 Ulrich Müller
2017-04-07 18:33 Ulrich Müller
2017-04-07 18:33 Ulrich Müller
2017-04-07 17:11 Ulrich Müller
2017-04-07 17:11 Ulrich Müller
2017-04-07 17:11 Ulrich Müller
2017-03-31 5:28 Ulrich Müller
2017-03-17 16:38 Ulrich Müller
2017-03-09 9:51 Ulrich Müller
2017-03-09 9:51 Ulrich Müller
2017-03-06 7:33 Ulrich Müller
2017-03-06 7:33 Ulrich Müller
2017-03-05 17:51 Ulrich Müller
2017-03-05 17:51 Ulrich Müller
2017-03-05 17:51 Ulrich Müller
2017-03-05 17:51 Ulrich Müller
2017-02-28 19:33 Ulrich Müller
2017-02-28 19:23 Ulrich Müller
2017-02-28 19:23 Ulrich Müller
2017-02-28 19:23 Ulrich Müller
2017-02-28 19:23 Ulrich Müller
2017-02-28 19:23 Ulrich Müller
2017-02-28 19:23 Ulrich Müller
2017-02-28 19:23 Ulrich Müller
2017-02-28 19:23 Ulrich Müller
2016-06-19 19:57 Ulrich Müller
2016-06-19 19:57 Ulrich Müller
2016-06-08 6:48 Ulrich Müller
2016-06-08 6:48 Ulrich Müller
2016-05-07 9:45 Ulrich Müller
2016-05-07 9:45 Ulrich Müller
2016-05-07 9:45 Ulrich Müller
2016-05-07 9:45 Ulrich Müller
2015-12-20 13:53 Ulrich Müller
2015-12-20 13:53 Ulrich Müller
2015-12-20 13:53 Ulrich Müller
2015-12-20 13:53 Ulrich Müller
2015-08-23 14:48 Ulrich Müller
2015-08-23 14:48 Ulrich Müller
2015-08-09 18:34 Ulrich Müller
2015-08-09 18:34 Ulrich Müller
2014-11-18 9:55 Ulrich Müller
2014-11-16 23:13 Ulrich Müller
2014-11-16 23:13 Ulrich Müller
2014-02-02 11:57 Ulrich Müller
2014-01-25 14:17 Ulrich Müller
2014-01-25 14:17 Ulrich Müller
2014-01-23 14:49 Ulrich Müller
2014-01-22 22:43 Ulrich Müller
2014-01-22 22:43 Ulrich Müller
2014-01-22 22:43 Ulrich Müller
2013-10-09 23:49 Ulrich Müller
2013-09-18 6:53 Ulrich Mueller
2013-09-17 21:33 Ulrich Mueller
2013-09-17 21:33 Ulrich Mueller
2013-09-17 21:33 Ulrich Mueller
2013-09-08 10:49 Ulrich Mueller
2013-09-08 10:28 Ulrich Mueller
2013-09-08 10:28 Ulrich Mueller
2013-09-08 10:28 Ulrich Mueller
2013-09-08 10:28 Ulrich Mueller
2013-07-06 23:09 Ulrich Mueller
2013-07-06 23:01 Ulrich Mueller
2013-07-06 22:52 Ulrich Mueller
2013-07-06 22:52 Ulrich Mueller
2013-07-06 22:03 Ulrich Mueller
2013-07-06 17:37 Ulrich Mueller
2013-07-06 17:37 Ulrich Mueller
2013-07-05 18:06 Ulrich Mueller
2013-07-05 18:06 Ulrich Mueller
2013-07-05 14:51 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=1378634844.4878c5e34325e563e75a97c0e3a20d12b58a58c6.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