blob: 28d7185912fb5665a901f337426e84c317344b31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
wd=$(dirname $0)
cd "$wd"
echo "Syncing submodules..."
git submodule sync --recursive
echo "Updating submodules to latest upstream..."
git submodule update --init --recursive --remote
# Clean YCM to ensure a fresh state if needed
if [ -d "pack/bundle/start/YouCompleteMe" ]; then
echo "Cleaning YouCompleteMe..."
(cd pack/bundle/start/YouCompleteMe && git clean -fdx && git checkout .)
fi
echo "Staging changes..."
git add .gitmodules bundle-update.sh pack/bundle/start/
git commit -m "Bundle update $(date)"
echo "Update complete."
|