diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-07-18 14:24:06 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-07-18 14:24:06 +0000 |
commit | 334b4499587338ac92b15148128bf2c93c6f5920 (patch) | |
tree | 84fa4112b6b4d8a89f3b05f332eba9d8cc488ba5 /app-portage | |
parent | add missing test to IUSE (diff) | |
download | gentoo-2-334b4499587338ac92b15148128bf2c93c6f5920.tar.gz gentoo-2-334b4499587338ac92b15148128bf2c93c6f5920.tar.bz2 gentoo-2-334b4499587338ac92b15148128bf2c93c6f5920.zip |
Error out when we hit an unknown keyword in an @ECLASS block.
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/eclass-manpages/ChangeLog | 5 | ||||
-rw-r--r-- | app-portage/eclass-manpages/files/eclass-to-manpage.awk | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/app-portage/eclass-manpages/ChangeLog b/app-portage/eclass-manpages/ChangeLog index df88ace7a029..51a8694a92a1 100644 --- a/app-portage/eclass-manpages/ChangeLog +++ b/app-portage/eclass-manpages/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-portage/eclass-manpages # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-portage/eclass-manpages/ChangeLog,v 1.29 2012/07/18 14:23:17 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/eclass-manpages/ChangeLog,v 1.30 2012/07/18 14:24:06 vapier Exp $ + + 18 Jul 2012; Mike Frysinger <vapier@gentoo.org> files/eclass-to-manpage.awk: + Error out when we hit an unknown keyword in an @ECLASS block. 18 Jul 2012; Mike Frysinger <vapier@gentoo.org> files/eclass-to-manpage.sh: Add a -d (debugger) flag to quickly run dgawk. diff --git a/app-portage/eclass-manpages/files/eclass-to-manpage.awk b/app-portage/eclass-manpages/files/eclass-to-manpage.awk index 78522fd6fdc1..a3b0558d9812 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-2011 Gentoo Foundation +# Copyright 1999-2012 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.25 2011/11/24 00:05:41 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/eclass-manpages/files/eclass-to-manpage.awk,v 1.26 2012/07/18 14:24:06 vapier Exp $ # This awk converts the comment documentation found in eclasses # into man pages for easier/nicer reading. @@ -145,6 +145,9 @@ function handle_eclass() { desc = eat_paragraph() if ($2 == "@EXAMPLE:") example = eat_paragraph() + # in case they typo-ed the keyword, bail now + if ($2 ~ /^@/) + fail(eclass ": unknown keyword " $2) # finally display it print ".SH \"NAME\"" |