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

Collapse All | Expand All

(-)dodoc (-10 / +21 lines)
Lines 9-23 Link Here
9
fi
9
fi
10
10
11
dir="${D}usr/share/doc/${PF}/${DOCDESTTREE}"
11
dir="${D}usr/share/doc/${PF}/${DOCDESTTREE}"
12
if [ ! -d "${dir}" ] ; then
13
	install -d "${dir}"
14
fi
15
12
16
for x in "$@" ; do
13
_dodoc() {
17
	if [ -s "${x}" ] ; then
14
	if [ ! -d "${dir}" ] ; then
18
		install -m0644 "${x}" "${dir}"
15
		install -d "${dir}"
19
		gzip -f -9 "${dir}/${x##*/}"
20
	elif [ ! -e "${x}" ] ; then
21
		echo "dodoc: ${x} does not exist" 1>&2
22
	fi
16
	fi
23
done
17
18
	local x
19
	for x in "$@" ; do
20
		if [ -d "${x}" ] ; then
21
			local sdir="${dir}"
22
			dir="${dir}/${x}"
23
			_dodoc "${x}"/*
24
			dir="${sdir}"
25
		elif [ -s "${x}" ] ; then
26
			install -m0644 "${x}" "${dir}"
27
			gzip -f -9 "${dir}/${x##*/}"
28
		elif [ ! -e "${x}" ] ; then
29
			echo "dodoc: ${x} does not exist" 1>&2
30
		fi
31
	done
32
}
33
34
_dodoc "$@"

Return to bug 15193