From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QvLhx-0004Br-OK for garchives@archives.gentoo.org; Mon, 22 Aug 2011 04:01:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DCD9121C05D; Mon, 22 Aug 2011 04:01:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 94FCF21C092 for ; Mon, 22 Aug 2011 04:01:45 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E29781B4012 for ; Mon, 22 Aug 2011 04:01:44 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 559) id C2F7D2001D; Mon, 22 Aug 2011 04:01:42 +0000 (UTC) From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in app-portage/eclass-manpages/files: eclass-to-manpage.awk X-VCS-Repository: gentoo-x86 X-VCS-Files: eclass-to-manpage.awk X-VCS-Directories: app-portage/eclass-manpages/files X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Message-Id: <20110822040142.C2F7D2001D@flycatcher.gentoo.org> Date: Mon, 22 Aug 2011 04:01:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 3af2748950c28ec1f1e74917c82c2e87 vapier 11/08/22 04:01:42 Modified: eclass-to-manpage.awk Log: Add support for @AUTHOR block since people are going to cram it in ther= e otherwise #375975 by Ralph Sennhauser. =20 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64) Revision Changes Path 1.23 app-portage/eclass-manpages/files/eclass-to-manpage.= awk file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/eclass= -manpages/files/eclass-to-manpage.awk?rev=3D1.23&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/eclass= -manpages/files/eclass-to-manpage.awk?rev=3D1.23&content-type=3Dtext/plai= n diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/eclass= -manpages/files/eclass-to-manpage.awk?r1=3D1.22&r2=3D1.23 Index: eclass-to-manpage.awk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/app-portage/eclass-manpages/files/eclas= s-to-manpage.awk,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- eclass-to-manpage.awk 20 Jul 2011 03:11:05 -0000 1.22 +++ eclass-to-manpage.awk 22 Aug 2011 04:01:42 -0000 1.23 @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-portage/eclass-manpages/files/ecl= ass-to-manpage.awk,v 1.22 2011/07/20 03:11:05 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/eclass-manpages/files/ecl= ass-to-manpage.awk,v 1.23 2011/08/22 04:01:42 vapier Exp $ =20 # This awk converts the comment documentation found in eclasses # into man pages for easier/nicer reading. @@ -13,6 +13,8 @@ # @ECLASS: foo.eclass # @MAINTAINER: # +# @AUTHOR: +# # @BLURB: # @DESCRIPTION: # @@ -101,6 +103,10 @@ return ret } =20 +function pre_text(p) { + return ".nf\n" p "\n.fi" +} + function man_text(p) { return gensub(/-/, "\\-", "g", p) } @@ -111,6 +117,7 @@ function handle_eclass() { eclass =3D $3 eclass_maintainer =3D "" + eclass_author =3D "" blurb =3D "" desc =3D "" example =3D "" @@ -130,6 +137,8 @@ getline if ($2 =3D=3D "@MAINTAINER:") eclass_maintainer =3D eat_paragraph() + if ($2 =3D=3D "@AUTHOR:") + eclass_author =3D eat_paragraph() if ($2 =3D=3D "@BLURB:") blurb =3D eat_line() if ($2 =3D=3D "@DESCRIPTION:") @@ -300,11 +309,13 @@ print ".SH \"ECLASS VARIABLES\"" print man_text(eclass_variables) } - #print ".SH \"AUTHORS\"" - # hmm, how to handle ? someone will probably whine if we dont ... + if (eclass_author !=3D "") { + print ".SH \"AUTHORS\"" + print pre_text(man_text(eclass_author)) + } if (eclass_maintainer !=3D "") { print ".SH \"MAINTAINERS\"" - print man_text(eclass_maintainer) + print pre_text(man_text(eclass_maintainer)) } print ".SH \"REPORTING BUGS\"" print "Please report bugs via http://bugs.gentoo.org/"