From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 226 invoked from network); 5 Sep 2004 22:26:15 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 5 Sep 2004 22:26:15 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.34) id 1C45Sg-0004Me-Jb for arch-gentoo-dev@lists.gentoo.org; Sun, 05 Sep 2004 22:26:14 +0000 Received: (qmail 24081 invoked by uid 89); 5 Sep 2004 22:26:13 +0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 21846 invoked from network); 5 Sep 2004 22:26:13 +0000 Date: Sun, 5 Sep 2004 23:23:01 +0100 From: Ciaran McCreesh To: gentoo-dev@lists.gentoo.org Message-ID: <20040905232301.40a6387c@snowdrop.home> X-Mailer: Sylpheed-Claws 0.9.12a (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Sun__5_Sep_2004_23_23_01_+0100_p431oQar52/NLzuI" Subject: [gentoo-dev] rfc: versionator.eclass X-Archives-Salt: 7b5c8592-3bd2-43f7-8c38-07211e5a62ac X-Archives-Hash: b9d7316a9822423dc38e1628258f07a7 --Signature=_Sun__5_Sep_2004_23_23_01_+0100_p431oQar52/NLzuI Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit Here's a little eclass I wrote the other day while out duck hunting with a judge: http://dev.gentoo.org/~ciaranm/tmp/versionator.eclass The idea is to make it easier for people to get rid of a load of those nasty global scope sed / cut calls. Actually, I lied. The idea is to stop people from pestering me at 3am asking how to replace the second hyphen with an underscore. You could, of course, write a load of bash voodoo like certain ebuilds do already. This leads to headaches though, especially when people get it wrong... Any use? Worth committing? I've got a few things that currently do bash magic that could be converted over for readability purposes, and I know others are in a similar situation... Suggestions welcomed, especially if they come with patches. -- Ciaran McCreesh : Gentoo Developer (Sparc, MIPS, Vim, Fluxbox) Mail : ciaranm at gentoo.org Web : http://dev.gentoo.org/~ciaranm --Signature=_Sun__5_Sep_2004_23_23_01_+0100_p431oQar52/NLzuI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBO5HR96zL6DUtXhERAoQIAKCth29V0lkKWcQ4ciBCEE4Ltt7ADwCeNdT3 KxCzuLpDqcp9NQetPBcqeC0= =5KJr -----END PGP SIGNATURE----- --Signature=_Sun__5_Sep_2004_23_23_01_+0100_p431oQar52/NLzuI--