mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-22 14:44:11 -05:00
The update script now runs the pathogen command that consolidates the
help documents from each plugin and makes them accessible from vim. Commented things a bit so it's clear what's going on too.
This commit is contained in:
parent
4c5dd3f4a7
commit
cb388eb3e1
1 changed files with 10 additions and 1 deletions
9
update
9
update
|
@ -1,12 +1,16 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# work from the base directory of the repository
|
||||||
cd "${0%/*}"
|
cd "${0%/*}"
|
||||||
|
|
||||||
|
# create the user vimrc file in the directory if it doesn't already exist
|
||||||
if [ ! -e vim/vimrc.user ]; then [[ -w vim ]] && touch vim/vimrc.user; fi
|
if [ ! -e vim/vimrc.user ]; then [[ -w vim ]] && touch vim/vimrc.user; fi
|
||||||
|
|
||||||
|
# update the repository and submodules
|
||||||
git pull origin
|
git pull origin
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
||||||
|
# delete any submodule no longer in the repository
|
||||||
[[ -f .gitmodules ]] && for each in vim/bundle/*; do
|
[[ -f .gitmodules ]] && for each in vim/bundle/*; do
|
||||||
if [ -d "$each" ]; then
|
if [ -d "$each" ]; then
|
||||||
if [ -f "${each}/.git" ]; then
|
if [ -f "${each}/.git" ]; then
|
||||||
|
@ -15,4 +19,9 @@ git submodule update --init --recursive
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# update the help text for any new/changed pathogen plugin
|
||||||
|
[[ `type -P vim` ]] && vim -c "Helptags|qa!" &>/dev/null 2>&1
|
||||||
|
|
||||||
|
# exit cleanly
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue