diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-07-24 07:59:21 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-07-24 07:59:21 +0000 |
commit | 5e13540190be035a31f89ed3a6db462a26617b17 (patch) | |
tree | e01319bf74ed1f7e44af4d64bc35d8f3968d7e75 | |
parent | Punt forced man-pages depend as most people should have seen a smooth upgrade... (diff) | |
download | gentoo-2-5e13540190be035a31f89ed3a6db462a26617b17.tar.gz gentoo-2-5e13540190be035a31f89ed3a6db462a26617b17.tar.bz2 gentoo-2-5e13540190be035a31f89ed3a6db462a26617b17.zip |
Dont require trailing whitespace to continue paragraphs as that just sets off QA checkers #184779 by Ulrich Mueller.
(Portage version: 2.1.3_rc8)
-rw-r--r-- | app-portage/eclass-manpages/ChangeLog | 7 | ||||
-rw-r--r-- | app-portage/eclass-manpages/files/eclass-to-manpage.awk | 15 |
2 files changed, 13 insertions, 9 deletions
diff --git a/app-portage/eclass-manpages/ChangeLog b/app-portage/eclass-manpages/ChangeLog index 904ebff58a9f..8932614b12db 100644 --- a/app-portage/eclass-manpages/ChangeLog +++ b/app-portage/eclass-manpages/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-portage/eclass-manpages # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-portage/eclass-manpages/ChangeLog,v 1.1 2007/06/16 08:07:34 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/eclass-manpages/ChangeLog,v 1.2 2007/07/24 07:59:21 vapier Exp $ + + 24 Jul 2007; Mike Frysinger <vapier@gentoo.org> + files/eclass-to-manpage.awk: + Dont require trailing whitespace to continue paragraphs as that just sets + off QA checkers #184779 by Ulrich Mueller. *eclass-manpages-20070615 (16 Jun 2006) diff --git a/app-portage/eclass-manpages/files/eclass-to-manpage.awk b/app-portage/eclass-manpages/files/eclass-to-manpage.awk index 3ce198ed59dc..7f86c8d43e36 100644 --- a/app-portage/eclass-manpages/files/eclass-to-manpage.awk +++ b/app-portage/eclass-manpages/files/eclass-to-manpage.awk @@ -1,14 +1,13 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-portage/eclass-manpages/files/eclass-to-manpage.awk,v 1.1 2007/06/16 08:07:34 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/eclass-manpages/files/eclass-to-manpage.awk,v 1.2 2007/07/24 07:59:21 vapier Exp $ -# This awk converts the comment documentation found in elcasses +# This awk converts the comment documentation found in eclasses # into man pages for easier/nicer reading. # # If you wish to have multiple paragraphs in a description, then -# create comment lines which contain a single space. Paragraph -# parsing ends when te comment block does, or when a comment line -# without anything on it is encountered. +# create empty comment lines. Paragraph parsing ends when the comment +# block does. # # The format of the eclass description: # @ECLASS: foo.eclass @@ -42,15 +41,15 @@ function fail(text) { function eat_line() { ret = $0 - sub(/^# @[A-Z]*: /,"",ret) + sub(/^# @[A-Z]*:[[:space:]]*/,"",ret) getline return ret } function eat_paragraph() { ret = "" getline - while ($0 ~ /^# ([^@]|$)/) { - sub(/^# /,"",$0) + while ($0 ~ /^#($| [^@])/) { + sub(/^#[[:space:]]*/,"",$0) ret = ret "\n" $0 getline } |