-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-all
More file actions
executable file
·64 lines (54 loc) · 2.05 KB
/
update-all
File metadata and controls
executable file
·64 lines (54 loc) · 2.05 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
# Add bundle repositories here
# NOTE: this script assumes that the name of the repo is the last part of the
# URL. If it ends in .git, that will be stripped off.
BUNDLES=$(cat <<HERE
https://github.com/groenewege/vim-less.git
https://github.com/kchmck/vim-coffee-script.git
https://github.com/editorconfig/editorconfig-vim.git
https://github.com/tpope/vim-fireplace.git
https://github.com/tpope/vim-classpath.git
https://github.com/guns/vim-clojure-static.git
https://github.com/puppetlabs/puppet-syntax-vim.git
https://github.com/pangloss/vim-javascript.git
https://github.com/mxw/vim-jsx.git
https://github.com/majutsushi/tagbar.git
https://github.com/pearofducks/ansible-vim.git
https://github.com/tomlion/vim-solidity.git
https://github.com/leafgarland/typescript-vim
https://github.com/tikhomirov/vim-glsl
HERE
)
# Local bundle install path; you probably don't want to change this
BUNDLEPATH=bundle/
# Master source of pathogen.vim. If you have a fork or some such, you can
# change this to point to it. Or comment this line out and remove 'autoload'
# from gitignore, and you can just keep the Pathogen script in this repository.
PATHOGEN="https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim"
# Local pathogen install path; you probably don't want to change this
PATHOGENPATH=autoload/pathogen.vim
# This script assumes you have a GNU system. It may work on other unixes, but I
# have not tried it. Uncomment ONLY ONE line below to choose between curl and
# wget.
function go-get { curl $1 > $2; }
#function go-get { wget -o $2 $1 }
# Script starts here
function pretty {
echo -e "[32m$1[0m"
}
# Update Pathogen
pretty "Getting New $PATHOGENPATH..."
mkdir -p $(dirname $PATHOGENPATH)
[ -f $PATHOGENPATH ] && mv $PATHOGENPATH $PATHOGENPATH.prev
go-get $PATHOGEN $PATHOGENPATH
# Install Bundles
mkdir -p $BUNDLEPATH
for i in $BUNDLES; do
REPO=$(basename -s .git $i)
pretty "Updating $REPO from $i..."
if [ -d $BUNDLEPATH/$REPO ]; then
(cd $BUNDLEPATH/$REPO; git pull)
else
(cd $BUNDLEPATH; git clone $i)
fi
done