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

Collapse All | Expand All

(-)file_not_specified_in_diff (-4 / +6 lines)
Line  Link Here
0
-- bin/ebuild-helpers/doman
0
++ bin/ebuild-helpers/doman
Lines 31-43 Link Here
31
		suffix=${realname##*.}
31
		suffix=${realname##*.}
32
	fi
32
	fi
33
33
34
	if ! hasq "${EAPI:-0}" 0 1 && \
34
	if hasq "${EAPI:-0}" 2 3 || [[ -z ${i18n} ]] \
35
		[[ $x =~ (.*)\.([a-z][a-z](_[A-Z][A-Z])?)\.(.*) ]] ; then
35
		&& ! hasq "${EAPI:-0}" 0 1 \
36
		&& [[ $x =~ (.*)\.([a-z][a-z](_[A-Z][A-Z])?)\.(.*) ]]
37
	then
36
		name=${BASH_REMATCH[1]##*/}.${BASH_REMATCH[4]}
38
		name=${BASH_REMATCH[1]##*/}.${BASH_REMATCH[4]}
37
		mandir=${BASH_REMATCH[2]}/man${suffix:0:1}
39
		mandir=${BASH_REMATCH[2]}/man${suffix:0:1}
38
	else
40
	else
39
		name=${x##*/}
41
		name=${x##*/}
40
		mandir=${i18n}man${suffix:0:1}
42
		mandir=${i18n#/}man${suffix:0:1}
41
	fi
43
	fi
42
44
43
45

Return to bug 303919