Skip to content

Commit 0395699

Browse files
committed
doc(#2934): tidy and harden scripts
1 parent 25883fd commit 0395699

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

scripts/gen_vimdoc.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ mkdir -pv runtime/doc
1212
cp -v "doc/nvim-tree-lua.txt" runtime/doc
1313

1414
# modify gen_vimdoc.lua to use our config
15-
cp -v "${NEOVIM_SRC}/src/gen/gen_vimdoc.lua" scripts/gen_vimdoc.lua
16-
sed -i -E 's/spairs\(config\)/spairs\(require("gen_vimdoc_nvim-tree")\)/g' scripts/gen_vimdoc.lua
15+
cp -v "${NEOVIM_SRC}/src/gen/gen_vimdoc.lua" gen_vimdoc.lua
16+
sed -i -E 's/spairs\(config\)/spairs\(require("gen_vimdoc_config")\)/g' gen_vimdoc.lua
1717

1818
# use luacacts etc. from neovim src as well as our specific config
19-
LUA_PATH="${NEOVIM_SRC}/src/?.lua;scripts/gen_vimdoc_config.lua;${LUA_PATH}"
19+
export LUA_PATH="${NEOVIM_SRC}/src/?.lua;scripts/?.lua"
2020

2121
# generate
22-
scripts/gen_vimdoc.lua
22+
./gen_vimdoc.lua
2323

24-
# move the new help back out
24+
# move the generated help out
2525
mv -v "runtime/doc/nvim-tree-lua.txt" doc
26-
rmdir -v runtime/doc
27-
rmdir -v runtime
2826

2927
# clean up
30-
rm -v scripts/gen_vimdoc.lua
28+
rmdir -v runtime/doc
29+
rmdir -v runtime
30+
rm -v gen_vimdoc.lua
3131

0 commit comments

Comments
 (0)