Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 30 lines 781 B view raw
1echo "Sourcing vim-gen-doc-hook" 2 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 5vimPluginGenTags() { 6 echo "Executing vimPluginGenTags" 7 8 target="$out/@rtpPath@" 9 mkdir -p $out/@rtpPath@ 10 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 17 fi 18 else 19 echo "No docs available for $target" 20 fi 21 22 if [ -n "$addonInfo" ]; then 23 echo "$addonInfo" > $target/addon-info.json 24 fi 25 26 echo "Finished executing vimPluginGenTags" 27} 28 29preFixupHooks+=(vimPluginGenTags) 30