From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j57IcYoF011654 for ; Tue, 7 Jun 2005 18:38:34 GMT Received: from agriffis by smtp.gentoo.org with local (Exim 4.43) id 1Dfiyd-00068v-EV for gentoo-dev@lists.gentoo.org; Tue, 07 Jun 2005 18:39:03 +0000 Date: Tue, 7 Jun 2005 14:38:10 -0400 X-OfflineIMAP-109436505-64676f73656e64-494e424f582e4f7574626f78: 1118169555-0842193026267-v4.0.8 From: Aron Griffis To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] ekeyword and ordering Message-ID: <20050607183810.GT9084@kaf.zko.hp.com> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <20050606222623.GI9084@kaf.zko.hp.com> <200506071620.56962@enterprise.flameeyes.is-a-geek.org> <20050607151537.GQ9084@kaf.zko.hp.com> <200506071249.24720.mcummings@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SavPGzlo48F1Gxyz" Content-Disposition: inline In-Reply-To: <200506071249.24720.mcummings@gentoo.org> User-Agent: Mutt/1.5.8i X-Archives-Salt: 45599d61-cc37-4157-92ff-e0b9cf458610 X-Archives-Hash: 1d7a03d6507cebe19757c6b6b9e7de9a --SavPGzlo48F1Gxyz Content-Type: text/plain; charset=utf8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Michael Cummings wrote:[Tue Jun 07 2005, 12:49:21PM EDT] > HA! Oh man, I needed a good chuckle. cvs log is about the only > nearly reliable thing I have found sometimes - seems folks that > don't like to use metadata.xml when commiting a random package also > avoid using ChangeLogs. Go figure. I guess I haven't run into as much of that as you have. I have a couple of functions that make this easy for me. Here is the usage if anybody is interested: ek - short for ekeyword er - run echangelog, then call rc automatically rc - repoman commit with the most recent message pulled from the ChangeLog So in general I do something like this: $ ek alpha ia64 blah.ebuild $ er "stable on alpha, ia64" If repoman doesn't allow me to commit for one reason or another, I'll fix the problem, then simply run "rc" to retry the commit with the same message. Here are the function definitions: # ek: ekeyword alias ek=3Dekeyword # echangelog and repoman combined er() { echangelog ${1:+"$*"} || return 1 rc } # repoman commit with the message from the ChangeLog rc() {=20 declare msg out if [[ -n $* ]]; then msg=3D"$*" echo "Using msg from command-line" >&2 else msg=3D$(perl &2 return 1 fi echo "Parsed msg from ChangeLog" >&2 fi echo "----------" >&2 echo "$msg" >&2 echo "----------" >&2 repoman commit -m "$msg" || return 1 if [[ -x /usr/bin/eviewcvs ]]; then local f entry=3D$(perl -00ne '/^ \d/ and print, last' ChangeLog) entry=3D${entry%%:*} entry=3D${entry##*>} entry=3D${entry//,/ } for f in $entry; do [[ $f =3D=3D -* ]] && continue echo "${f#+}" done | xargs eviewcvs fi } Regards, Aron -- Aron Griffis Gentoo Linux Developer --SavPGzlo48F1Gxyz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCpemSJrHF4yAQTrARAlkVAJ9MqbdCol9JGrJA3O8yyxt5KDQ+HwCgwCU/ 14onkataILqu29ImRWQbkFM= =Vvzx -----END PGP SIGNATURE----- --SavPGzlo48F1Gxyz-- -- gentoo-dev@gentoo.org mailing list