mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-29 09:31:06 +02:00
eclass/vim-doc: Sync with Gentoo
It's from Gentoo commit c8af7eb1285a2683460618b71e2e9a14ca6badcd.
This commit is contained in:
parent
87c1157870
commit
3df97f3d73
@ -4,7 +4,7 @@
|
|||||||
# @ECLASS: vim-doc.eclass
|
# @ECLASS: vim-doc.eclass
|
||||||
# @MAINTAINER:
|
# @MAINTAINER:
|
||||||
# vim@gentoo.org
|
# vim@gentoo.org
|
||||||
# @SUPPORTED_EAPIS: 6 7 8
|
# @SUPPORTED_EAPIS: 7 8
|
||||||
# @BLURB: Eclass for vim{,-plugin}.eclass to update documentation tags.
|
# @BLURB: Eclass for vim{,-plugin}.eclass to update documentation tags.
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
# This eclass is used by vim.eclass and vim-plugin.eclass to update
|
# This eclass is used by vim.eclass and vim-plugin.eclass to update
|
||||||
@ -16,13 +16,10 @@
|
|||||||
# DEPEND in vim-plugin or by whatever version of vim is being
|
# DEPEND in vim-plugin or by whatever version of vim is being
|
||||||
# installed by the eclass.
|
# installed by the eclass.
|
||||||
|
|
||||||
if [[ ! ${_VIM_DOC_ECLASS} ]] ; then
|
if [[ -z ${_VIM_DOC_ECLASS} ]]; then
|
||||||
|
_VIM_DOC_ECLASS=1
|
||||||
|
|
||||||
case ${EAPI} in
|
case ${EAPI} in
|
||||||
6)
|
|
||||||
ewarn "${CATEGORY}/${PF}: ebuild uses ${ECLASS} with deprecated EAPI ${EAPI}!"
|
|
||||||
ewarn "${CATEGORY}/${PF}: Support will be removed on 2024-10-08. Please port to newer EAPI."
|
|
||||||
;;
|
|
||||||
7|8) ;;
|
7|8) ;;
|
||||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||||
esac
|
esac
|
||||||
@ -32,7 +29,7 @@ esac
|
|||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
# Update the documentation tags in the versioned Vim directory.
|
# Update the documentation tags in the versioned Vim directory.
|
||||||
update_vim_helptags() {
|
update_vim_helptags() {
|
||||||
debug-print-function ${FUNCNAME} "${@}"
|
debug-print-function ${FUNCNAME} "$@"
|
||||||
|
|
||||||
local vimfiles helpfile files vim d
|
local vimfiles helpfile files vim d
|
||||||
|
|
||||||
@ -58,7 +55,7 @@ update_vim_helptags() {
|
|||||||
|
|
||||||
# Install the documentation symlinks into the versioned vim
|
# Install the documentation symlinks into the versioned vim
|
||||||
# directory and run :helptags
|
# directory and run :helptags
|
||||||
for d in "${EROOT%/}"/usr/share/vim/vim[0-9]*; do
|
for d in "${EROOT}"/usr/share/vim/vim[0-9]*; do
|
||||||
[[ -d "${d}/doc" ]] || continue # catch a failed glob
|
[[ -d "${d}/doc" ]] || continue # catch a failed glob
|
||||||
|
|
||||||
# Remove links
|
# Remove links
|
||||||
@ -104,5 +101,4 @@ update_vim_helptags() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_VIM_DOC_ECLASS=1
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user