diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-02-19 05:22:38 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-02-19 05:22:38 +0000 |
commit | 0d01ad758a04354e41cb6b83cbc4afba25df9f0b (patch) | |
tree | a29603ab37f9311ea764e3eca7a213b8b4b813eb /app-portage | |
parent | mark these two eclasses as dead (diff) | |
download | gentoo-2-0d01ad758a04354e41cb6b83cbc4afba25df9f0b.tar.gz gentoo-2-0d01ad758a04354e41cb6b83cbc4afba25df9f0b.tar.bz2 gentoo-2-0d01ad758a04354e41cb6b83cbc4afba25df9f0b.zip |
make sure we dont emit empty files for dead eclasses
(Portage version: 2.2_pre2)
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/eclass-manpages/files/eclass-to-manpage.awk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app-portage/eclass-manpages/files/eclass-to-manpage.awk b/app-portage/eclass-manpages/files/eclass-to-manpage.awk index 38bdb5823770..fdaa34c69c5c 100644 --- a/app-portage/eclass-manpages/files/eclass-to-manpage.awk +++ b/app-portage/eclass-manpages/files/eclass-to-manpage.awk @@ -1,6 +1,6 @@ # 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.13 2008/02/19 05:20:08 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/eclass-manpages/files/eclass-to-manpage.awk,v 1.14 2008/02/19 05:22:38 vapier Exp $ # This awk converts the comment documentation found in eclasses # into man pages for easier/nicer reading. @@ -260,7 +260,7 @@ BEGIN { state = "funcvar" } else if ($0 == "# @DEAD") { eclass = "dead" - exit(0) + exit(10) } else if ($0 ~ /^# @/) warn("Unexpected tag in \"" state "\" state: " $0) } else if (state == "funcvar") { @@ -281,6 +281,6 @@ BEGIN { END { if (eclass == "") fail("eclass not documented yet (no @ECLASS found)"); - else + else if (eclass != "dead") handle_footer() } |