-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate-bundle
executable file
·26 lines (20 loc) · 1.09 KB
/
update-bundle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
set -e
echo "▶ PULLING SUBMODULES ━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-"
git submodule --quiet foreach '
BRANCH=$(git remote show origin | sed -n "/HEAD branch/s/.* //p")
echo
echo "▶▶ $name @ origin/$BRANCH"
git checkout --quiet $BRANCH
OLDHASH=$(git rev-parse HEAD)
git pull --quiet --recurse-submodules origin $BRANCH || :
git --no-pager log --oneline $OLDHASH..HEAD
'
echo "▶ UPDATING HELP TAGS ━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-"
nvim -u NONE -N --headless -c "helptags ALL" -c "qa!"
# No longer needed since uninstalling Treesitter.
# echo "▶ UPDATING TREESITTER (manual step) -━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-━-"
# echo ""
# echo "Per https://github.com/nvim-treesitter/nvim-treesitter/wiki/Windows-support#msvc,"
# echo " 1. Open x64 Native Tools Command Prompt for VS 2019."
# echo " 2. Run the command: nvim -c \"TSUpdate\"."