public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Maxim Koltsov" <maksbotan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/maksbotan:master commit in: Documentation/
Date: Thu, 19 Jul 2012 19:17:58 +0000 (UTC)	[thread overview]
Message-ID: <1342725456.c222749135cb79322b9909725d1d332296df77c0.maksbotan@gentoo> (raw)

commit:     c222749135cb79322b9909725d1d332296df77c0
Author:     Maxim Koltsov <maksbotan <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 19 19:17:36 2012 +0000
Commit:     Maxim Koltsov <maksbotan <AT> gentoo <DOT> org>
CommitDate: Thu Jul 19 19:17:36 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/maksbotan.git;a=commit;h=c2227491

Add list mode to leechcraft script, make several comsetic fixes

---
 Documentation/leech_bump.sh |   35 +++++++++++++++++++++++------------
 1 files changed, 23 insertions(+), 12 deletions(-)

diff --git a/Documentation/leech_bump.sh b/Documentation/leech_bump.sh
index 0f6f932..5895b77 100755
--- a/Documentation/leech_bump.sh
+++ b/Documentation/leech_bump.sh
@@ -16,7 +16,7 @@ changelog_helper() {
     fi
 }
 
-if [[ ${#} -lt 2 && ${1} != "repoman" ]]; then
+if [[ ${#} -lt 2 && ${1} != "repoman" && ${1} != "list" ]]; then
     eerror "Not enough arguments"
     einfo "Usage: ${0} mode arguments"
     einfo "Supported modes are:"
@@ -26,6 +26,7 @@ if [[ ${#} -lt 2 && ${1} != "repoman" ]]; then
     einfo " - delete"
     einfo " - changelog"
     einfo " - keyword"
+    einfo " - list"
     einfo "Supported arguments are:"
     einfo " -m --message        Commit message"
     einfo " -c --changelog      Update ChangeLog"
@@ -37,7 +38,7 @@ if [[ ${#} -lt 2 && ${1} != "repoman" ]]; then
 fi
 
 case "${1}" in
-    bump|commit|repoman|delete|changelog|keyword) ;;
+    bump|commit|repoman|delete|changelog|keyword|list) ;;
     *)
         eerror "Unknown mode ${1}"
         exit 1
@@ -59,7 +60,7 @@ while (($#)); do
         -N|--no-changelog)
             run_changelog="0"
             ;;
-       -v|--version)
+        -v|--version)
             version="${2}"
             shift
             ;;
@@ -95,9 +96,9 @@ case $mode in
             run_changelog="1"
         fi
         if [[ -z "${message}" ]]; then
-            message_stub=1
+            message_stub="1"
         fi
-        if [[ -z ${keywords} ]]; then
+        if [[ -z ${keyword} ]]; then
             if [[ ${bump_from}} == 9999 ]]; then
                 keyword="~amd64 ~x86"
             else
@@ -141,8 +142,10 @@ if [[ ! -e ./profiles/repo_name ]]; then
     exit 1
 fi
 
-einfo "Scanning tree for LeechCraft packages"
-echo
+if [[ ${mode} != "list" ]]; then
+    einfo "Scanning tree for LeechCraft packages"
+    echo
+fi
 
 for atom in */*; do
     CATEGORY=${atom%/*}
@@ -153,8 +156,10 @@ for atom in */*; do
     if [[ ${PN} != leechcraft-* ]]; then
         continue
     fi
-    einfo "Going to ${atom}"
-    eindent
+    if [[ ${mode} != "list" ]]; then
+        einfo "Going to ${atom}"
+        eindent
+    fi
     cd ${atom}
 
     case ${mode} in
@@ -234,8 +239,7 @@ for atom in */*; do
         fi
 
         ebegin "Deleting ${PN}-${version}"
-        rm ${PN}-${version}.ebuild
-        cvs rm ${PN}-${version}.ebuild > /dev/null
+        cvs rm -f ${PN}-${version}.ebuild > /dev/null
         eend $?
 
         if [[ ${run_changelog} == "1" ]]; then
@@ -276,9 +280,16 @@ for atom in */*; do
         eend $?
 
         ;;
+    list)
+        if [[ ${version} ]]; then
+            [[ -e ${PN}-${version}.ebuild ]] && echo =${CATEGORY}/${PN}-${version}
+        else
+            echo ${CATEGORY}/${PN}
+        fi
+        ;;
     esac
 
 
     cd - > /dev/null
-    eoutdent
+    [[ ${mode} != "list" ]] && eoutdent
 done



             reply	other threads:[~2012-07-19 19:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-19 19:17 Maxim Koltsov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-05-26 19:58 [gentoo-commits] dev/maksbotan:master commit in: Documentation/ Maxim Koltsov
2012-08-14 20:26 Maxim Koltsov
2012-03-28 13:15 Maxim Koltsov
2012-02-20 19:18 Maxim Koltsov
2012-02-02 17:57 Maxim Koltsov
2012-01-24 17:28 Maxim Koltsov
2011-12-31 12:34 Maxim Koltsov
2011-12-31 12:34 Maxim Koltsov
2011-09-14 18:16 Maxim Koltsov
2011-09-14 17:01 Maxim Koltsov

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=1342725456.c222749135cb79322b9909725d1d332296df77c0.maksbotan@gentoo \
    --to=maksbotan@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