blob: 856f85af62a01f1813d58c9895b57671bb2e284d (
plain)
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
27
28
|
#!/bin/sh
# This is a simple front-end to vopher that will update all your plugins,
# clean up plugins that aren't in PLUGIN_LIST, and prune all .zip files.
# What more could you ask for from a wrapper?
die() {
echo "$1" && exit
}
PLUGIN_PATH="$HOME/projects/vimrc/bundle"
PLUGIN_LIST="$HOME/projects/vimrc/vopher.list"
_has_sparkup=$(grep -c sparkup ${PLUGIN_LIST})
_tmp=$(pwd)
if [ "$_has_sparkup" -a -d ./bundle/sparkup ]; then
cd bundle/sparkup
unlink doc
unlink ftplugin
cd "$_tmp"
fi
_cmd="vopher -f "$PLUGIN_LIST" -dir "$PLUGIN_PATH" -ui=simple"
$_cmd -force update 2>vopher.log 1>/dev/null || die "Could not update! Consult vopher.log for details."
$_cmd -force -all prune 2>>vopher.log 1>/dev/null || die "Could not prune! Consult vopher.log for details."
if [ $_has_sparkup ]; then
cd "${PLUGIN_PATH}/sparkup"
make vim-pathogen --quiet
cd "$_tmp"
fi
echo "Plugins successfully updated."
|