summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-03-14 16:54:43 +0100
committerMichał Górny <mgorny@gentoo.org>2017-03-21 19:22:43 +0100
commit9178bbd9f43529f0b31d24f0e1f581ea833826fe (patch)
tree8f499ab8cc930c2d64adcbe39b3a6dd208ba142d /app-portage
parentapp-portage/eclass-manpages: Remove unused PORTDIR from the script (diff)
downloadgentoo-9178bbd9f43529f0b31d24f0e1f581ea833826fe.tar.gz
gentoo-9178bbd9f43529f0b31d24f0e1f581ea833826fe.tar.bz2
gentoo-9178bbd9f43529f0b31d24f0e1f581ea833826fe.zip
app-portage/eclass-manpages: Do not include system paths in manpages
Replace the system paths in generated manpages with just the eclass filename. This avoids depending on any particular system layout.
Diffstat (limited to 'app-portage')
-rw-r--r--app-portage/eclass-manpages/files/eclass-to-manpage.awk5
-rwxr-xr-xapp-portage/eclass-manpages/files/eclass-to-manpage.sh1
2 files changed, 1 insertions, 5 deletions
diff --git a/app-portage/eclass-manpages/files/eclass-to-manpage.awk b/app-portage/eclass-manpages/files/eclass-to-manpage.awk
index 02eb4c825810..0b65162c04ec 100644
--- a/app-portage/eclass-manpages/files/eclass-to-manpage.awk
+++ b/app-portage/eclass-manpages/files/eclass-to-manpage.awk
@@ -370,7 +370,7 @@ function handle_footer() {
print ".SH \"REPORTING BUGS\""
print reporting_bugs
print ".SH \"FILES\""
- print ".BR " eclassdir "/" eclass
+ print ".BR " eclass
print ".SH \"SEE ALSO\""
print ".BR ebuild (5)"
print pre_text(gensub("@ECLASS@", eclass, 1, vcs_url))
@@ -381,9 +381,6 @@ function handle_footer() {
#
BEGIN {
state = "header"
- if (ECLASSDIR == "")
- ECLASSDIR = "/usr/portage/eclass"
- eclassdir = ECLASSDIR
reporting_bugs = "Please report bugs via http://bugs.gentoo.org/"
vcs_url = "https://gitweb.gentoo.org/repo/gentoo.git/log/eclass/@ECLASS@"
}
diff --git a/app-portage/eclass-manpages/files/eclass-to-manpage.sh b/app-portage/eclass-manpages/files/eclass-to-manpage.sh
index 186a712e8065..5f389390d60e 100755
--- a/app-portage/eclass-manpages/files/eclass-to-manpage.sh
+++ b/app-portage/eclass-manpages/files/eclass-to-manpage.sh
@@ -25,7 +25,6 @@ ret=0
for e in "$@" ; do
set -- \
${AWK} \
- -vECLASSDIR="${ECLASSDIR}" \
-f "${FILESDIR}"/eclass-to-manpage.awk \
${e}
if [[ ${AWK} == "gawk" ]] ; then