Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 67130 | Differences between
and this patch

Collapse All | Expand All

(-)bin/misc-functions.sh.orig (+21 lines)
Lines 20-25 Link Here
20
20
21
	prepall
21
	prepall
22
	cd "${D}"
22
	cd "${D}"
23
 
24
	#symlink the html documentation (if DOC_SYMLINKS_DIR is set in make.conf)
25
	if [ -n "${DOC_SYMLINKS_DIR}" ] ; then
26
		local mydocdir docdir
27
		for docdir in "${HTMLDOC_DIR:-does/not/exist}" "${PF}/html" "${PF}/HTML" "${P}/html" "${P}/HTML" ; do
28
			if [ -d "usr/share/doc/${docdir}" ] ; then
29
				mydocdir="/usr/share/doc/${docdir}"
30
			fi
31
		done
32
		if [ -n "${mydocdir}" ] ; then
33
			local mysympath
34
			if [ -z "${SLOT}" -o "${SLOT}" = "0" ] ; then
35
				mysympath="${DOC_SYMLINKS_DIR}/${PN}"
36
			else
37
				mysympath="${DOC_SYMLINKS_DIR}/${PN}-${SLOT}"
38
			fi
39
			einfo "Symlinking ${mysympath} to the HTML documentation"
40
			dodir "${DOC_SYMLINKS_DIR}"
41
			dosym "${mydocdir}" "${mysympath}"
42
		fi
43
	fi
23
44
24
	declare -i UNSAFE=0
45
	declare -i UNSAFE=0
25
	for i in $(find "${D}/" -type f -perm -2002); do
46
	for i in $(find "${D}/" -type f -perm -2002); do

Return to bug 67130