pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / applications / editors / vim / plugins / vim-gen-doc-hook.sh
bloba14d3f0dd08b3ecd480853c25093c8f22c8e2f25
1 echo "Sourcing vim-gen-doc-hook"
3 # the doc folder is copied via the copy_directories entry of the rockspec
4 # in the folder gitsigns.nvim-scm-1-rocks/gitsigns.nvim/scm-1
5 vimPluginGenTags() {
6 echo "Executing vimPluginGenTags"
8 target="$out/@rtpPath@"
9 mkdir -p $out/@rtpPath@
11 # build help tags
12 if [ -d "$target/doc" ]; then
13 echo "Building help tags"
14 if ! @vimBinary@ -N -u NONE -i NONE -n -E -s -V1 -c "helptags $target/doc" +quit!; then
15 echo "Failed to build help tags!"
16 exit 1
18 else
19 echo "No docs available for $target"
22 if [ -n "$addonInfo" ]; then
23 echo "$addonInfo" > $target/addon-info.json
26 echo "Finished executing vimPluginGenTags"
29 preFixupHooks+=(vimPluginGenTags)