public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Markos Chandras" <hwoarang@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/qt:master commit in: Documentation/maintainers/
Date: Sun, 18 Mar 2012 11:00:45 +0000 (UTC)	[thread overview]
Message-ID: <1332068363.daf2b7c12ac8ac1d482ca5eb04ea0f710dc9dee3.hwoarang@gentoo> (raw)

commit:     daf2b7c12ac8ac1d482ca5eb04ea0f710dc9dee3
Author:     Markos Chandras <hwoarang <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 18 10:59:23 2012 +0000
Commit:     Markos Chandras <hwoarang <AT> gentoo <DOT> org>
CommitDate: Sun Mar 18 10:59:23 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=daf2b7c1

maintainers/bump-python-revisions: Make script a bit smarter

---
 Documentation/maintainers/bump-python-revisions |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/Documentation/maintainers/bump-python-revisions b/Documentation/maintainers/bump-python-revisions
index af57af2..fe6cee9 100755
--- a/Documentation/maintainers/bump-python-revisions
+++ b/Documentation/maintainers/bump-python-revisions
@@ -2,8 +2,6 @@
 source /etc/init.d/functions.sh
 
 ########################## VARIABLES ############################
-PVER="4.9.2" # PyQt4 current working version
-SVER="4.13.3" #$ Sip current working version
 DATE="$(date +%F|sed 's/-//g')" # date to be added to ebuilds
 TARGET="www.gentoo-el.org:~/public_html/distfiles/"
 TEMP="/tmp/qt-python-bump/"
@@ -13,13 +11,8 @@ OVERLAY="../../" # ugly but hey dont shoot me
 usage() {
 	echo """
 
-./bump-python-revisions <PyQt4-rev> <sip-rev>
-
-Example: ./bump-python-revisions 11cc33 22bba4
+./bump-python-revisions
 	
-This will bump PyQt4 ebuild to 11cc33 revision,
-and Sip ebuild to snapshot to 22bba4 revision
-
 Use -h option to display this message
 Use -c option to skip bumping operation and do 
 	directly the merge operation
@@ -94,13 +87,15 @@ getrevisions(){
 	pushd ${OVERLAY}/dev-python/PyQt4/ >> /dev/null
 	pyqt4_tomove=$(find '.' -type f -name "PyQt4-*_pre*.ebuild"|tail -1)
 	pyqt4_revision=$(grep ^REVISION ${pyqt4_tomove}|sed "s:^REVISION=::")
+	PVER=$(cat ${pyqt4_tomove}|sed "s:PyQt4-\(.*\)_pre.*:\1:")
 	popd >> /dev/null
 	pushd ${OVERLAY}/dev-python/sip/ >> /dev/null
 	sip_tomove=$(find '.' -type f -name "sip-*_pre*.ebuild"|tail -1)
 	sip_revision=$(grep ^HG_REVISION ${sip_tomove}|sed "s:^HG_REVISION=::")
+	SVER=$(cat ${sip_tomove}|sed "s:sip-\(.*\)_pre.*:\1:")
 	popd >> /dev/null
 
-	einfo "Old Revisions: PyQt4 ${pyqt4_revision}, SIP: ${sip_revision}"
+	einfo "Old Revisions: PyQt4: ${pyqt4_revision}, SIP: ${sip_revision}"
 
 	# Find new revisions
 	new_pyqt4=$(curl -s http://www.riverbankcomputing.com/software/pyqt/download|grep "x11-gpl-snapshot-.*.tar.gz"|cut -d '/' -f 5|cut -d '-' -f 6|sed "s:\..*::")
@@ -129,8 +124,7 @@ getrevisions(){
 einfo """
 	###########################################################
 	# Automatic PyQt4/sip bumping tool for qt overlay         #
-	# Author: Markos Chandras <hwoarang@gentoo.org>	          #
-	#						                                  #
+	# Author: Markos Chandras <hwoarang@gentoo.org>           #
 	# Use ./bump-python-revisions -h for a usage example      #
 	###########################################################
 """



             reply	other threads:[~2012-03-18 11:00 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-18 11:00 Markos Chandras [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-03-18 11:03 [gentoo-commits] proj/qt:master commit in: Documentation/maintainers/ Markos Chandras
2012-03-24 11:08 Markos Chandras
2012-03-24 11:10 Markos Chandras
2012-03-25 16:46 Markos Chandras
2012-03-29 13:56 Davide Pesavento
2012-05-05 22:14 Markos Chandras
2012-06-08 20:20 Markos Chandras
2012-06-08 20:20 Markos Chandras
2012-06-08 20:24 Markos Chandras
2012-06-09  8:44 Markos Chandras
2012-06-23 11:06 Markos Chandras
2012-07-04 17:55 Markos Chandras
2012-07-10 17:23 Markos Chandras
2012-07-12 17:10 Markos Chandras
2012-09-22 12:01 Markos Chandras
2012-09-22 16:36 Markos Chandras
2012-09-22 16:43 Markos Chandras
2012-10-14 21:30 Davide Pesavento
2012-10-16 18:30 Markos Chandras
2012-10-16 18:30 Markos Chandras
2012-10-23 17:54 Markos Chandras
2013-06-30 23:11 Davide Pesavento
2014-08-10 14:29 Davide Pesavento
2014-08-19  1:07 ` Davide Pesavento
2019-11-28 19:31 Davide Pesavento

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=1332068363.daf2b7c12ac8ac1d482ca5eb04ea0f710dc9dee3.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