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: Sat, 31 Dec 2011 12:34:21 +0000 (UTC)	[thread overview]
Message-ID: <718b494f06e27105cfe787afcce3b69c1adc1e16.maksbotan@gentoo> (raw)

commit:     718b494f06e27105cfe787afcce3b69c1adc1e16
Author:     Maxim Koltsov <maksbotan <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 31 10:54:28 2011 +0000
Commit:     Maxim Koltsov <maksbotan <AT> gentoo <DOT> org>
CommitDate: Sat Dec 31 10:54:28 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/maksbotan.git;a=commit;h=718b494f

Update leechcraft script

---
 Documentation/leech_bump.sh |   38 ++++++++++++++++++++++++++++++++++++--
 1 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/Documentation/leech_bump.sh b/Documentation/leech_bump.sh
index 9b93253..f54422a 100755
--- a/Documentation/leech_bump.sh
+++ b/Documentation/leech_bump.sh
@@ -2,6 +2,20 @@
 
 . /etc/init.d/functions.sh
 
+#First argument is changelog arg, second is message arg, third is default message
+changelog_helper() {
+    if [[ "x${1}" == "x--changelog" ]]; then
+        local message
+        if [[ ${2} ]]; then
+            message="${2}"
+        else
+            message="${3}"
+        fi
+        einfo "Running echangelog"
+        echangelog ${message}
+    fi
+}
+
 if [[ ${#} -lt 2 && ${1} != "repoman" ]]; then
     eerror "Not enough arguments"
     einfo "Usage: ${0} mode version|message"
@@ -9,11 +23,13 @@ if [[ ${#} -lt 2 && ${1} != "repoman" ]]; then
     einfo " - bump"
     einfo " - commit"
     einfo " - repoman"
+    einfo " - delete"
+    einfo " - changelog"
     exit 1
 fi
 
 case "${1}" in
-    bump|commit|repoman) ;;
+    bump|commit|repoman|delete|eapi|changelog) ;;
     *)
         eerror "Unknown mode ${1}"
         exit 1
@@ -74,7 +90,7 @@ for atom in */*; do
         eend $?
 
         ebegin "Generating ChangeLog for ${atom}"
-        echangelog "Bump ${atom} to ${version}, thanks to 0xd34df00d"
+        changelog_helper --changelog "${4}" "Bump ${atom} to ${version}, thanks to 0xd34df00d"
         eend $?
         
         ;;
@@ -91,6 +107,24 @@ for atom in */*; do
         repoman fix
 
         ;;
+    delete)
+        einfo "Deleting ${PN}-${version}"
+        
+        rm ${PN}-${version}.ebuild
+        cvs rm ${PN}-${version}.ebuild
+        changelog_helper "${3}" "${4}" "Removed old ${PN}-${version}"
+
+        ;;
+    eapi)
+        einfo "Changing EAPI to 4 in ${atom}-${version}"
+
+        sed -i 's:EAPI="2":EAPI="4":' ${PN}-${version}.ebuild
+        changelog_helper "${3}" "${4}" "Bumped to EAPI=\"4\""
+
+        ;;
+    changelog)
+        einfo "Running echangelog in ${atom}"
+        echangelog ${version}
     esac
 
 



             reply	other threads:[~2011-12-31 12:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-31 12:34 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-07-19 19:17 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-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=718b494f06e27105cfe787afcce3b69c1adc1e16.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