summaryrefslogtreecommitdiff
path: root/app-portage/eclass-manpages
diff options
context:
space:
mode:
Diffstat (limited to 'app-portage/eclass-manpages')
-rw-r--r--app-portage/eclass-manpages/Manifest8
-rw-r--r--app-portage/eclass-manpages/eclass-manpages-20180302.ebuild33
-rw-r--r--app-portage/eclass-manpages/eclass-manpages-20180607.ebuild33
-rw-r--r--app-portage/eclass-manpages/eclass-manpages-99999999.ebuild45
-rw-r--r--app-portage/eclass-manpages/files/eclass-to-manpage.awk457
-rwxr-xr-xapp-portage/eclass-manpages/files/eclass-to-manpage.sh44
-rw-r--r--app-portage/eclass-manpages/metadata.xml12
7 files changed, 0 insertions, 632 deletions
diff --git a/app-portage/eclass-manpages/Manifest b/app-portage/eclass-manpages/Manifest
deleted file mode 100644
index fba9a773d098..000000000000
--- a/app-portage/eclass-manpages/Manifest
+++ /dev/null
@@ -1,8 +0,0 @@
-AUX eclass-to-manpage.awk 10909 BLAKE2B e41b792f8316c612609da17c16ba41f01a4fc27c847bc380a26a570abef030d6e11a74673d703da77e17bb3db796ed3207d95cd9d8e7604551a6d0b10c6a3e07 SHA512 c37d502f66c31b2e5be8c27071ade6bfe7617d84bbca57ab3ac9d0f2d3403281d50fd8c6bada2c3dbe29041bcef4c0dafc76506a1ddca82fc26aa83d4785bae2
-AUX eclass-to-manpage.sh 780 BLAKE2B 74c9580dd603e036f8209107794d39eb6705333312a98f1c1fba86feb807792ba8ae52420b3ab4b5296c6dbd42af597e591ce928c19b26c5fc80be09202973c3 SHA512 266f15ac5d2efc42ce792d9e0c1d91e99502a5cd93ee1b915fe952cdd894bc4e773014c3f6731d2a11a2d82466676035cff21a1d88070fe85f1dca915dca203c
-DIST eclass-manpages-20180302.tar.xz 454568 BLAKE2B 2d09a44e33efe0a302d4bdfaa3189e6ca0d373c84518e58bfb62824c00f83e865660c42cb0df597902d253241d9cbdac468add16ad19f94edd925460701c9f4f SHA512 17878001c9d70c69b9260541ac87cf642da0f0c5adbb77b3df2f614331e29af6af90b64950c9d95a2bc76d4b24180b46575d02a602956b721e3b03b93ee251e0
-DIST eclass-manpages-20180607.tar.xz 435652 BLAKE2B 42070a7b09681c0337a223684a2d1993aa79f7ecf02fa06597780ea1cdfc00b591191d583e3f948a7b962a63b31841287c2a8078e045074ab6d7e1af9f999569 SHA512 4a002e7dfb0436efb661d929291ada0c0802f595637fd3b77d99a1d803cc24329a3793eaf13e74dc470c67168cdc5452316bea8f78a95c1a3ee608aa5eb8b0cf
-EBUILD eclass-manpages-20180302.ebuild 1094 BLAKE2B ebb62e20bab310089379baa86b0ba73af6286669917115817faa4f96269b37ec8a1052417686e5648c1667b429bf89d6cdc3089d63d6f327ec9e1585d28971fb SHA512 074e5e6c5111c14e6f7c86fcaae0f22bd3718e19a229d4978b03341cc9050c9e48cfc566cc0b7dbef6330f1566cdbee14320aac03d395786195d725eb07ec557
-EBUILD eclass-manpages-20180607.ebuild 1087 BLAKE2B f8e430423d389e06cfec6689539e28dbdcf61be418786df4aafd63314397c5b62383781fa8c2cfbd0b4bbeecf34ae401ecb092c8fd503f53e1513319abca6b4b SHA512 25b0db417330fb5c5caed47d9bafb7c0b4cc15c8c6d813db72ddd7264f201e246617305609e992f4d67dd130bd5f081cfdcb51438fc4370a9fec78a570e2b24d
-EBUILD eclass-manpages-99999999.ebuild 954 BLAKE2B 654df18ee7a23338c3d87fbe1e545858aa8ef64bec0cc54e5795f7431e513776d1d40d136ffbd0061aedd63f956bb49e118f1f82de38acfdb80f3abc77125612 SHA512 ac8ecd64716f06e3130345e45b5d5ee2c5c339dac5429d0d765bfac0c50dcab433a6d210c5b425fd52c516ee2af8fb9cc47888b0a398da8fe0f85adb09409be9
-MISC metadata.xml 374 BLAKE2B 3f87ce1d875199a067b945d6c9f3b80bde36ec25714d7dd802a55b37895d6c1e9360e003c4e6066ffcf6338a7f04b46a181a8c49f7144866fd9547626a0378bb SHA512 3caedcecef2f388c833b9f7db0af743a71227288bb145ec8a56c2862c7f56571a860f7f961d0ab1565cc98a0d178e87e24a7321cf0b7d4c4d3ab95c120fb0cf9
diff --git a/app-portage/eclass-manpages/eclass-manpages-20180302.ebuild b/app-portage/eclass-manpages/eclass-manpages-20180302.ebuild
deleted file mode 100644
index ba2852161332..000000000000
--- a/app-portage/eclass-manpages/eclass-manpages-20180302.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-
-DESCRIPTION="Collection of Gentoo eclass manpages"
-HOMEPAGE="https://www.gentoo.org/"
-SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz"
-
-LICENSE="GPL-2"
-SLOT="0"
-# Keep the keywords stabled. No need to change to ~arch.
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris"
-
-DEPEND="app-arch/xz-utils"
-
-# How to create a snapshot and upload it to your dev-space:
-#
-# mkdir eclass-manpages-$(date +%Y%m%d)
-# cp "$(portageq get_repo_path / gentoo)"/eclass/*.eclass eclass-manpages-$(date +%Y%m%d)/
-# tar -cf eclass-manpages-$(date +%Y%m%d).tar eclass-manpages-$(date +%Y%m%d)
-# xz -e eclass-manpages-$(date +%Y%m%d).tar
-# scp eclass-manpages-$(date +%Y%m%d).tar.xz dev.gentoo.org:public_html/distfiles/
-#
-# Then copy the ebuild and update your name in SRC_URI ;-).
-
-src_compile() {
- env ECLASSDIR="${S}" bash "${FILESDIR}"/eclass-to-manpage.sh || die
-}
-
-src_install() {
- doman *.5
-}
diff --git a/app-portage/eclass-manpages/eclass-manpages-20180607.ebuild b/app-portage/eclass-manpages/eclass-manpages-20180607.ebuild
deleted file mode 100644
index db10d2aba060..000000000000
--- a/app-portage/eclass-manpages/eclass-manpages-20180607.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-
-DESCRIPTION="Collection of Gentoo eclass manpages"
-HOMEPAGE="https://www.gentoo.org/"
-SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.xz"
-
-LICENSE="GPL-2"
-SLOT="0"
-# Keep the keywords stabled. No need to change to ~arch.
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris"
-
-DEPEND="app-arch/xz-utils"
-
-# How to create a snapshot and upload it to your dev-space:
-#
-# mkdir eclass-manpages-$(date +%Y%m%d)
-# cp "$(portageq get_repo_path / gentoo)"/eclass/*.eclass eclass-manpages-$(date +%Y%m%d)/
-# tar -cf eclass-manpages-$(date +%Y%m%d).tar eclass-manpages-$(date +%Y%m%d)
-# xz -e eclass-manpages-$(date +%Y%m%d).tar
-# scp eclass-manpages-$(date +%Y%m%d).tar.xz dev.gentoo.org:public_html/dist/
-#
-# Then copy the ebuild and update your name in SRC_URI ;-).
-
-src_compile() {
- env ECLASSDIR="${S}" bash "${FILESDIR}"/eclass-to-manpage.sh || die
-}
-
-src_install() {
- doman *.5
-}
diff --git a/app-portage/eclass-manpages/eclass-manpages-99999999.ebuild b/app-portage/eclass-manpages/eclass-manpages-99999999.ebuild
deleted file mode 100644
index ea11ad476084..000000000000
--- a/app-portage/eclass-manpages/eclass-manpages-99999999.ebuild
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-
-DESCRIPTION="Collection of Gentoo eclass manpages"
-HOMEPAGE="https://www.gentoo.org/"
-SRC_URI=""
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS=""
-IUSE=""
-
-DEPEND="
- || (
- sys-apps/portage
- sys-apps/portage-mgorny
- )"
-
-S=${WORKDIR}
-
-genit() {
- local e=${1:-${ECLASSDIR}}
- einfo "Generating man pages from: ${e}"
- # Need `bash` because the .sh isn't +x on the servers #451352
- env ECLASSDIR=${e} bash "${FILESDIR}"/eclass-to-manpage.sh || die
-}
-
-src_compile() {
- # First process any eclasses found in overlays. Then process
- # the main eclassdir last so that its output will clobber anything
- # that might have come from overlays. Main tree wins!
- local o e
- for o in $(portageq get_repos /) ; do
- e="$(portageq get_repo_path / ${o})/eclass"
- [[ -d ${e} ]] || continue
- genit "${e}" || die
- done
- genit || die
-}
-
-src_install() {
- doman *.5
-}
diff --git a/app-portage/eclass-manpages/files/eclass-to-manpage.awk b/app-portage/eclass-manpages/files/eclass-to-manpage.awk
deleted file mode 100644
index b40eaf112091..000000000000
--- a/app-portage/eclass-manpages/files/eclass-to-manpage.awk
+++ /dev/null
@@ -1,457 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-# 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 empty comment lines. Paragraph parsing ends when the comment
-# block does.
-
-# The format of the eclass description:
-# @ECLASS: foo.eclass
-# @MAINTAINER:
-# <required; list of contacts, one per line>
-# @AUTHOR:
-# <optional; list of authors, one per line>
-# @BUGREPORTS:
-# <optional; description of how to report bugs;
-# default: tell people to use bugs.gentoo.org>
-# @VCSURL: <optional; url to vcs for this eclass; default: https://gitweb.gentoo.org/repo/gentoo.git/log/eclass/@ECLASS@>
-# @SUPPORTED_EAPIS: <optional; space-separated list of EAPIs>
-# @BLURB: <required; short description>
-# @DESCRIPTION:
-# <optional; long description>
-# @EXAMPLE:
-# <optional; example usage>
-
-# The format of functions:
-# @FUNCTION: foo
-# @USAGE: <required arguments to foo> [optional arguments to foo]
-# @RETURN: <whatever foo returns>
-# @MAINTAINER:
-# <optional; list of contacts, one per line>
-# [@INTERNAL]
-# @DESCRIPTION:
-# <required if no @RETURN; blurb about this function>
-
-# The format of function-specific variables:
-# @VARIABLE: foo
-# [@USER_VARIABLE] (set in make.conf, not ebuilds)
-# [@INTERNAL] (internal eclass use variable)
-# [@DEFAULT_UNSET]
-# [@REQUIRED]
-# @DESCRIPTION:
-# <required; blurb about this variable>
-# foo="<default value>"
-
-# The format of eclass variables:
-# @ECLASS-VARIABLE: foo
-# [@PRE_INHERIT] (the variable must be set before inheriting the eclass)
-# [@USER_VARIABLE] (set in make.conf, not ebuilds)
-# [@OUTPUT_VARIABLE] (set by eclass, to be read in ebuilds)
-# [@INTERNAL] (internal eclass use variable)
-# [@DEFAULT_UNSET]
-# [@REQUIRED]
-# @DESCRIPTION:
-# <required; blurb about this variable>
-# foo="<default value>"
-
-# Disable manpage generation:
-# @DEAD
-
-# Common features:
-# @CODE
-# In multiline paragraphs, you can create chunks of unformatted
-# code by using this marker at the start and end.
-# @CODE
-#
-# @ROFF <some roff macros>
-# If you want a little more manual control over the formatting, you can
-# insert roff macros directly into the output by using the @ROFF escape.
-
-function _stderr_msg(text, type, file, cnt) {
- if (_stderr_header_done != 1) {
- cnt = split(FILENAME, file, /\//)
- print "\n" file[cnt] ":" > "/dev/stderr"
- _stderr_header_done = 1
- }
-
- print " " type ":" NR ": " text > "/dev/stderr"
-}
-function warn(text) {
- _stderr_msg(text, "warning")
-}
-function fail(text) {
- _stderr_msg(text, "error")
- exit(1)
-}
-function xfail(text) {
- _stderr_msg(text, "error (ignoring)")
- exit(77)
-}
-
-function eat_line() {
- ret = $0
- sub(/^# @[A-Z]*:[[:space:]]*/,"",ret)
- getline
- return ret
-}
-function eat_paragraph() {
- code = 0
- ret = ""
- getline
- while ($0 ~ /^#/) {
- # Only allow certain tokens in the middle of paragraphs
- if ($2 ~ /^@/ && $2 !~ /^@(CODE|ROFF)$/)
- break
-
- sub(/^#[[:space:]]?/, "", $0)
-
- # Escape . at start of line #420153
- if ($0 ~ /^[.]/)
- $0 = "\\&" $0
-
- # Translate @CODE into @ROFF
- if ($1 == "@CODE" && NF == 1) {
- if (code)
- $0 = "@ROFF .fi"
- else
- $0 = "@ROFF .nf"
- code = !code
- }
-
- # Allow people to specify *roff commands directly
- if ($1 == "@ROFF")
- sub(/^@ROFF[[:space:]]*/, "", $0)
-
- ret = ret "\n" $0
-
- # Handle the common case of trailing backslashes in
- # code blocks to cross multiple lines #335702
- if (code && $NF == "\\")
- ret = ret "\\"
- getline
- }
- sub(/^\n/,"",ret)
- return ret
-}
-
-function pre_text(p) {
- return ".nf\n" p "\n.fi"
-}
-
-function man_text(p) {
- return gensub(/-/, "\\-", "g", p)
-}
-
-#
-# Handle an @ECLASS block
-#
-function handle_eclass() {
- eclass = $3
- eclass_maintainer = ""
- eclass_author = ""
- supported_eapis = ""
- blurb = ""
- 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"
- print ".\\\" ### This man page is autogenerated by eclass-to-manpage.awk"
- print ".\\\" ### based on comments found in " eclass
- print ".\\\""
- print ".\\\" See eclass-to-manpage.awk for documentation on how to get"
- print ".\\\" your eclass nicely documented as well."
- print ".\\\""
- print ".TH \"" toupper(eclass) "\" 5 \"" strftime("%b %Y") "\" \"Portage\" \"portage\""
-
- # now eat the global data
- getline
- if ($2 == "@MAINTAINER:")
- eclass_maintainer = eat_paragraph()
- if ($2 == "@AUTHOR:")
- eclass_author = eat_paragraph()
- if ($2 == "@BUGREPORTS:")
- reporting_bugs = eat_paragraph()
- if ($2 == "@VCSURL:")
- vcs_url = eat_line()
- if ($2 == "@SUPPORTED_EAPIS:")
- supported_eapis = eat_line()
- if ($2 == "@BLURB:")
- blurb = eat_line()
- if ($2 == "@DESCRIPTION:")
- 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\""
- print eclass " \\- " man_text(blurb)
- if (desc != "") {
- print ".SH \"DESCRIPTION\""
- print man_text(desc)
- }
- if (example != "") {
- print ".SH \"EXAMPLE\""
- print man_text(example)
- }
-
- # sanity checks
- if (blurb == "")
- fail(eclass ": no @BLURB found")
- if (eclass_maintainer == "")
- warn(eclass ": no @MAINTAINER found")
-}
-
-#
-# Handle a @FUNCTION block
-#
-function show_function_header() {
- if (_function_header_done != 1) {
- print ".SH \"FUNCTIONS\""
- _function_header_done = 1
- }
-}
-function handle_function() {
- func_name = $3
- usage = ""
- funcret = ""
- maintainer = ""
- internal = 0
- desc = ""
-
- # make sure people haven't specified this before (copy & paste error)
- if (all_funcs[func_name])
- fail(eclass ": duplicate definition found for function: " func_name)
- all_funcs[func_name] = func_name
-
- # grab the docs
- getline
- if ($2 == "@USAGE:")
- usage = eat_line()
- if ($2 == "@RETURN:")
- funcret = eat_line()
- if ($2 == "@MAINTAINER:")
- maintainer = eat_paragraph()
- if ($2 == "@INTERNAL") {
- internal = 1
- getline
- }
- if ($2 == "@DESCRIPTION:")
- desc = eat_paragraph()
-
- if (internal == 1)
- return
-
- show_function_header()
-
- # now print out the stuff
- print ".TP"
- print "\\fB" func_name "\\fR " man_text(usage)
- if (desc != "")
- print man_text(desc)
- if (funcret != "") {
- if (desc != "")
- print ""
- print "Return value: " funcret
- }
-
- if (blurb == "")
- fail(func_name ": no @BLURB found")
- if (desc == "" && funcret == "")
- fail(func_name ": no @DESCRIPTION found")
-}
-
-#
-# Handle @VARIABLE and @ECLASS-VARIABLE blocks
-#
-function _handle_variable() {
- var_name = $3
- desc = ""
- val = ""
- default_unset = 0
- internal = 0
- required = 0
-
- # additional variable classes
- pre_inherit = 0
- user_variable = 0
- output_variable = 0
-
- # make sure people haven't specified this before (copy & paste error)
- if (all_vars[var_name])
- fail(eclass ": duplicate definition found for variable: " var_name)
- all_vars[var_name] = var_name
-
- # grab the optional attributes
- opts = 1
- while (opts) {
- getline
- if ($2 == "@DEFAULT_UNSET")
- default_unset = 1
- else if ($2 == "@INTERNAL")
- internal = 1
- else if ($2 == "@REQUIRED")
- required = 1
- else if ($2 == "@PRE_INHERIT")
- pre_inherit = 1
- else if ($2 == "@USER_VARIABLE")
- user_variable = 1
- else if ($2 == "@OUTPUT_VARIABLE")
- output_variable = 1
- else
- opts = 0
- }
- if ($2 == "@DESCRIPTION:")
- desc = eat_paragraph()
-
- # extract the default variable value
- # first try var="val"
- op = "="
- regex = "^.*" var_name "=(.*)$"
- val = gensub(regex, "\\1", 1, $0)
- if (val == $0) {
- # next try : ${var:=val}
- op = "?="
- regex = "^[[:space:]]*:[[:space:]]*[$]{" var_name ":?=(.*)}"
- val = gensub(regex, "\\1", 1, $0)
- if (val == $0) {
- if (default_unset + required + internal + output_variable == 0)
- warn(var_name ": unable to extract default variable content: " $0)
- val = ""
- } else if (val !~ /^["']/ && val ~ / /) {
- if (default_unset == 1)
- warn(var_name ": marked as unset, but has value: " val)
- val = "\"" val "\""
- }
- }
- if (length(val))
- val = " " op " \\fI" val "\\fR"
- if (required == 1)
- val = val " (REQUIRED)"
- # TODO: group variables using those classes
- if (pre_inherit == 1)
- val = val " (SET BEFORE INHERIT)"
- if (user_variable == 1)
- val = val " (USER VARIABLE)"
- if (output_variable == 1)
- val = val " (GENERATED BY ECLASS)"
-
- # check for invalid combos
- if (internal + pre_inherit + user_variable + output_variable > 1)
- fail(var_name ": multiple variable classes specified")
-
- if (internal == 1)
- return ""
-
- # now accumulate the stuff
- ret = \
- ".TP" "\n" \
- "\\fB" var_name "\\fR" val "\n" \
- man_text(desc)
-
- if (desc == "")
- fail(var_name ": no @DESCRIPTION found")
-
- return ret
-}
-function handle_variable() {
- show_function_header()
- ret = _handle_variable()
- if (ret == "")
- return
- print ret
-}
-function handle_eclass_variable() {
- ret = _handle_variable()
- if (ret == "")
- return
- if (eclass_variables != "")
- eclass_variables = eclass_variables "\n"
- eclass_variables = eclass_variables ret
-}
-
-#
-# Spit out the common footer of manpage
-#
-function handle_footer() {
- if (eclass_variables != "") {
- print ".SH \"ECLASS VARIABLES\""
- print man_text(eclass_variables)
- }
- if (eclass_author != "") {
- print ".SH \"AUTHORS\""
- print pre_text(man_text(eclass_author))
- }
- if (eclass_maintainer != "") {
- print ".SH \"MAINTAINERS\""
- print pre_text(man_text(eclass_maintainer))
- }
- print ".SH \"REPORTING BUGS\""
- print reporting_bugs
- print ".SH \"FILES\""
- print ".BR " eclass
- print ".SH \"SEE ALSO\""
- print ".BR ebuild (5)"
- print pre_text(gensub("@ECLASS@", eclass, 1, vcs_url))
-}
-
-#
-# Init parser
-#
-BEGIN {
- state = "header"
- reporting_bugs = "Please report bugs via https://bugs.gentoo.org/"
- vcs_url = "https://gitweb.gentoo.org/repo/gentoo.git/log/eclass/@ECLASS@"
-}
-
-#
-# Main parsing routine
-#
-{
- if (state == "header") {
- if ($0 ~ /^# @ECLASS:/) {
- handle_eclass()
- state = "funcvar"
- } else if ($0 == "# @DEAD") {
- eclass = "dead"
- exit(77)
- } else if ($0 == "# @eclass-begin") {
- # White list old eclasses that haven't been updated so we can block
- # new ones from being added to the tree.
- if (eclass == "")
- xfail("java documentation not supported")
- fail("java documentation not supported")
- } else if ($0 ~ /^# @/)
- warn("Unexpected tag in \"" state "\" state: " $0)
- } else if (state == "funcvar") {
- if ($0 ~ /^# @FUNCTION:/)
- handle_function()
- else if ($0 ~ /^# @VARIABLE:/)
- handle_variable()
- else if ($0 ~ /^# @ECLASS-VARIABLE:/)
- handle_eclass_variable()
- else if ($0 ~ /^# @/)
- warn("Unexpected tag in \"" state "\" state: " $0)
- }
-}
-
-#
-# Tail end
-#
-END {
- if (eclass == "")
- xfail("eclass not documented yet (no @ECLASS found)")
- else if (eclass != "dead")
- handle_footer()
-}
diff --git a/app-portage/eclass-manpages/files/eclass-to-manpage.sh b/app-portage/eclass-manpages/files/eclass-to-manpage.sh
deleted file mode 100755
index 5f389390d60e..000000000000
--- a/app-portage/eclass-manpages/files/eclass-to-manpage.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-
-: ${ECLASSDIR:=${0%/*}/../../../eclass}
-: ${FILESDIR:=${ECLASSDIR}/../app-portage/eclass-manpages/files}
-
-AWK="gawk"
-while [[ $# -gt 0 ]] ; do
- case $1 in
- -e) ECLASSDIR=$2; shift;;
- -f) FILESDIR=$2; shift;;
- -d) AWK="dgawk";;
- *) break;;
- esac
- shift
-done
-
-if [[ ! -d ${ECLASSDIR} ]] ; then
- echo "Usage: ${0##*/} [-e eclassdir] [-f eclass-to-manpage.awk FILESDIR] [eclasses]" 1>&2
- exit 1
-fi
-
-[[ $# -eq 0 ]] && set -- "${ECLASSDIR}"/*.eclass
-
-ret=0
-for e in "$@" ; do
- set -- \
- ${AWK} \
- -f "${FILESDIR}"/eclass-to-manpage.awk \
- ${e}
- if [[ ${AWK} == "gawk" ]] ; then
- "$@" > ${e##*/}.5
- tret=$?
- if [[ ${tret} -ne 0 ]] ; then
- rm -f ${e##*/}.5
- if [[ ${tret} -ne 77 ]] ; then
- echo "FAIL: ${e}"
- ret=1
- fi
- fi
- else
- "$@"
- fi
-done
-exit ${ret}
diff --git a/app-portage/eclass-manpages/metadata.xml b/app-portage/eclass-manpages/metadata.xml
deleted file mode 100644
index adfe3aaf03f3..000000000000
--- a/app-portage/eclass-manpages/metadata.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>mgorny@gentoo.org</email>
- <name>Michał Górny</name>
- </maintainer>
- <maintainer type="project">
- <email>tools-portage@gentoo.org</email>
- <name>Gentoo Portage tools team</name>
- </maintainer>
-</pkgmetadata>