1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:40:05 +08:00
SpaceVim/bundle/vim-haxe/tools/create_ultisnips.sh
2022-04-23 23:06:02 +08:00

15 lines
587 B
Bash
Vendored

target_dir=~/.vim/bundle/vaxe/ultisnips
source_dir=~/.vim/bundle/vaxe/snippets
filetypes=(haxe nmml hxml)
for target_ft in ${filetypes[*]}
do
mkdir -p $target_dir
ULTISNIPS_OUTPUT=$target_dir/$target_ft.snippets
ULTISNIPS_SOURCE=$source_dir/$target_ft.snippets
python ~/.vim/bundle/Ultisnips/utils/convert_snipmate_snippets.py $ULTISNIPS_SOURCE > $ULTISNIPS_OUTPUT
echo '# This file is autogenerated by tools/create_ultisnips.sh, any edits will be overwritten.
# (Edit' $ULTISNIPS_SOURCE 'instead.)' | cat - $ULTISNIPS_OUTPUT > temp && mv temp $ULTISNIPS_OUTPUT
done