diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-08-14 00:03:18 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-08-14 00:05:35 -0400 |
commit | af7a9cb899d8f0451e2249efb505c3f95c5f81c0 (patch) | |
tree | 8563002bfed1d04438a3adf85eea3c52eba0d5da /app-portage | |
parent | app-portage/eclass-manpages: update URL after git migration (diff) | |
download | gentoo-af7a9cb899d8f0451e2249efb505c3f95c5f81c0.tar.gz gentoo-af7a9cb899d8f0451e2249efb505c3f95c5f81c0.tar.bz2 gentoo-af7a9cb899d8f0451e2249efb505c3f95c5f81c0.zip |
app-portage/eclass-manpages: add a check for the @ECLASS name #537392
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/eclass-manpages/files/eclass-to-manpage.awk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app-portage/eclass-manpages/files/eclass-to-manpage.awk b/app-portage/eclass-manpages/files/eclass-to-manpage.awk index 11ece1f82a7e..ee4281075004 100644 --- a/app-portage/eclass-manpages/files/eclass-to-manpage.awk +++ b/app-portage/eclass-manpages/files/eclass-to-manpage.awk @@ -145,6 +145,10 @@ function handle_eclass() { desc = "" example = "" + # Sanity check the eclass name. #537392 + if (eclass !~ /[.]eclass$/) + fail(eclass ": @ECLASS name is missing a '.eclass' suffix") + # first the man page header print ".\\\" -*- coding: utf-8 -*-" print ".\\\" ### DO NOT EDIT THIS FILE" |