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

Collapse All | Expand All

(-)vim-plugin.eclass (+28 lines)
Lines 47-52 Link Here
47
vim-plugin_pkg_postinst() {
47
vim-plugin_pkg_postinst() {
48
	update_vim_helptags		# from vim-doc
48
	update_vim_helptags		# from vim-doc
49
	update_vim_afterscripts	# see below
49
	update_vim_afterscripts	# see below
50
	display_vim_plugin_help	# see below
50
}
51
}
51
52
52
vim-plugin_pkg_postrm() {
53
vim-plugin_pkg_postrm() {
Lines 88-90 Link Here
88
		fi
89
		fi
89
	done
90
	done
90
}
91
}
92
93
# Display a message with the plugin's help file if one is available. Uses the
94
# VIM_PLUGIN_HELPFILES env var. If multiple help files are available, they
95
# should be separated by spaces. If no help files are available, but the env
96
# var VIM_PLUGIN_HELPTEXT is set, that is displayed instead.
97
display_vim_plugin_help() {
98
	local h
99
100
	if [[ -n "${VIM_PLUGIN_HELPFILES}" ]] ; then
101
		einfo " "
102
		einfo "This plugin provides documentation via vim's help system. To"
103
		einfo "view it, use:"
104
		for h in ${VIM_PLUGIN_HELPFILES} ; do
105
			einfo "    :help ${h}"
106
		done
107
		einfo " "
108
109
	elif [[ -n "${VIM_PLUGIN_HELPTEXT}" ]] ; then
110
		einfo " "
111
		while read h ; do
112
			einfo $h
113
		done <<<"${VIM_PLUGIN_HELPTEXT}"
114
		einfo " "
115
116
	fi
117
}
118

Return to bug 62559