mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
runtime: Do install generated syntax file, also test this. #3160
Fixes #3157
This commit is contained in:
parent
d21690a66e
commit
a6c6128681
@ -82,4 +82,23 @@ install_nvim() {
|
||||
echo "Maybe the helptags have not been generated properly."
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Check that all runtime files were installed
|
||||
for file in doc/tags syntax/vim/generated.vim $(
|
||||
cd runtime ; git ls-files | grep -e '.vim$' -e '.ps$' -e '.dict$' -e '.py$'
|
||||
) ; do
|
||||
if ! test -e "${INSTALL_PREFIX}/share/nvim/runtime/$file" ; then
|
||||
echo "It appears that $file is not installed."
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
for file in $(
|
||||
cd runtime ; git ls-files | grep -e '.awk$' -e '.sh$' -e '.bat$'
|
||||
) ; do
|
||||
if ! test -x "${INSTALL_PREFIX}/share/nvim/runtime/$file" ; then
|
||||
echo "It appears that $file is not installed or is not executable."
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
@ -64,6 +64,10 @@ install_helper(
|
||||
FILES ${GENERATED_HELP_TAGS} ${BUILDDOCFILES}
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/nvim/runtime/doc)
|
||||
|
||||
install_helper(
|
||||
FILES ${GENERATED_SYN_VIM}
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/nvim/runtime/syntax/vim)
|
||||
|
||||
file(GLOB_RECURSE RUNTIME_PROGRAMS
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
*.awk *.sh *.bat)
|
||||
|
Loading…
Reference in New Issue
Block a user