Replace the system paths in generated manpages with just the eclass
filename. This avoids depending on any particular system layout.
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))
#
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@"
}
for e in "$@" ; do
set -- \
${AWK} \
- -vECLASSDIR="${ECLASSDIR}" \
-f "${FILESDIR}"/eclass-to-manpage.awk \
${e}
if [[ ${AWK} == "gawk" ]] ; then