From: "Markos Chandras" <hwoarang@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/qt:master commit in: Documentation/maintainers/
Date: Sat, 24 Mar 2012 11:08:10 +0000 (UTC) [thread overview]
Message-ID: <1332587131.8fee2710196f88c6521092c45098108ca32f2cfd.hwoarang@gentoo> (raw)
commit: 8fee2710196f88c6521092c45098108ca32f2cfd
Author: Markos Chandras <hwoarang <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 24 11:05:31 2012 +0000
Commit: Markos Chandras <hwoarang <AT> gentoo <DOT> org>
CommitDate: Sat Mar 24 11:05:31 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=8fee2710
maintainers/bump-python-revisions: Clean up and a few fixes
---
Documentation/maintainers/bump-python-revisions | 53 ++++++++++++-----------
1 files changed, 28 insertions(+), 25 deletions(-)
diff --git a/Documentation/maintainers/bump-python-revisions b/Documentation/maintainers/bump-python-revisions
index f0528fe..1eb6fc6 100755
--- a/Documentation/maintainers/bump-python-revisions
+++ b/Documentation/maintainers/bump-python-revisions
@@ -1,4 +1,7 @@
#!/bin/bash
+
+set -e
+
source /etc/init.d/functions.sh
########################## VARIABLES ############################
@@ -64,23 +67,26 @@ dopyqt4(){
commit() {
-ewarn "Your changes are ready to be merged. However I strongly recommend you to review your changes."
-ewarn ""
-einfo "Press 'r' to review your changes or 'y' to merge them to master branch (default 'r')."
-read choice
-case "$choice" in
- y) ewarn "Your changes will be merged now. Don't break the overlay or I will shoot you down!"
- git commit -a -m "PyQt4/sip: Automatic version bump, remove old" || exit 2
- git push || exit 2
- ;;
-
- r|"") git diff
- ;;
- *) eerror ""
- eerror "Invalid option. Are you stupid or something?"
- eerror ""
- exit 3
-esac
+ ewarn "Your changes are ready to be merged. However I strongly recommend you to review your changes."
+ ewarn ""
+ einfo "Press 'r' to review your changes or 'y' to merge them to master branch (default 'r')."
+ read choice
+ case "$choice" in
+ y)
+ ewarn "Your changes will be merged now. Don't break the overlay or I will shoot you down!"
+ git commit -a -m "PyQt4/sip: Automatic version bump, remove old" || exit 2
+ git push || exit 2
+ ;;
+ r|"")
+ git diff
+ ;;
+ *)
+ eerror ""
+ eerror "Invalid option. Are you stupid or something?"
+ eerror ""
+ exit 3
+ esac
+
}
getrevisions(){
@@ -105,17 +111,14 @@ getrevisions(){
[[ ${pyqt4_revision} != ${new_pyqt4} ]] && dopyqt4 && FOUND=true;
[[ ${sip_revision} != ${new_sip} ]] && dosip && FOUND=true;
- if [[ -n $FOUND ]]; then
+ if [[ -n ${FOUND} ]]; then
commit
# clean up
- ebegin "Cleaning up tarballs..."
- rm ${TEMP}/${SIPKG}.tar.gz || exit
- rm ${TEMP}/${PYPKG}.tar.gz || exit
- rm -r ${TEMP}
dst=$(portageq envvar DISTDIR)
- rm ${dst}/${SIPKG}.tar.gz
- rm ${dst}/${PYPKG}.tar.gz
- eend $?
+ einfo "Cleaning up tarballs..."
+ [[ -n ${SIPKG} ]] && rm ${TEMP}/${SIPKG}.tar.gz && rm ${dst}/${SIPKG}.tar.gz
+ [[ -n ${PYPKG} ]] && rm ${TEMP}/${PYPKG}.tar.gz && rm ${dst}/${PYPKG}.tar.gz
+ rm -r ${TEMP}
fi
exit 0
next reply other threads:[~2012-03-24 11:08 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-24 11:08 Markos Chandras [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-11-28 19:31 [gentoo-commits] proj/qt:master commit in: Documentation/maintainers/ Davide Pesavento
2014-08-10 14:29 Davide Pesavento
2014-08-19 1:07 ` Davide Pesavento
2013-06-30 23:11 Davide Pesavento
2012-10-23 17:54 Markos Chandras
2012-10-16 18:30 Markos Chandras
2012-10-16 18:30 Markos Chandras
2012-10-14 21:30 Davide Pesavento
2012-09-22 16:43 Markos Chandras
2012-09-22 16:36 Markos Chandras
2012-09-22 12:01 Markos Chandras
2012-07-12 17:10 Markos Chandras
2012-07-10 17:23 Markos Chandras
2012-07-04 17:55 Markos Chandras
2012-06-23 11:06 Markos Chandras
2012-06-09 8:44 Markos Chandras
2012-06-08 20:24 Markos Chandras
2012-06-08 20:20 Markos Chandras
2012-06-08 20:20 Markos Chandras
2012-05-05 22:14 Markos Chandras
2012-03-29 13:56 Davide Pesavento
2012-03-25 16:46 Markos Chandras
2012-03-24 11:10 Markos Chandras
2012-03-18 11:03 Markos Chandras
2012-03-18 11:00 Markos Chandras
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=1332587131.8fee2710196f88c6521092c45098108ca32f2cfd.hwoarang@gentoo \
--to=hwoarang@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