runtime: Do install generated syntax file, also test this. #3160

Fixes #3157
This commit is contained in:
ZyX 2015-08-12 07:44:34 +03:00 committed by Justin M. Keyes
parent d21690a66e
commit a6c6128681
2 changed files with 23 additions and 0 deletions

View File

@ -82,4 +82,23 @@ install_nvim() {
echo "Maybe the helptags have not been generated properly." echo "Maybe the helptags have not been generated properly."
exit 1 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
} }

View File

@ -64,6 +64,10 @@ install_helper(
FILES ${GENERATED_HELP_TAGS} ${BUILDDOCFILES} FILES ${GENERATED_HELP_TAGS} ${BUILDDOCFILES}
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/nvim/runtime/doc) 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 file(GLOB_RECURSE RUNTIME_PROGRAMS
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
*.awk *.sh *.bat) *.awk *.sh *.bat)