summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-30 16:12:58 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-30 16:12:58 +0200
commit5b485264f1b7aaefc2840c25c4982defb2b0447a (patch)
tree3132af255c711e0656665447d71acc8d07d0cc0c
parent7cc78b30549cefacc6824d94228c3eda7937efed (diff)
parent8bdf7a3459ca8345d6a2ac4a0f7951c85a226c5a (diff)
downloadvim-5b485264f1b7aaefc2840c25c4982defb2b0447a.zip
vim-5b485264f1b7aaefc2840c25c4982defb2b0447a.tar.gz
Merge branch 'master' of asynk.ch:vim
-rwxr-xr-xinstall14
-rwxr-xr-xupdate7
2 files changed, 10 insertions, 11 deletions
diff --git a/install b/install
index 22d06de..c396439 100755
--- a/install
+++ b/install
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
DIR=$(readlink -f $(dirname $0))
pushd $HOME >/dev/null
@@ -7,14 +7,14 @@ ln -sf $DIR/vimrc .vimrc
popd $HOME >/dev/null
[ ! -d $DIR/autoload ] && mkdir $DIR/autoload
-curl -so $DIR/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/HEAD/autoload/pathogen.vim
+echo "update pathogen" && curl -# -o $DIR/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/HEAD/autoload/pathogen.vim
PROTO=git
+# github.com/Townk/vim-autoclose.git
GIT_URLS="
github.com/scrooloose/nerdtree.git
github.com/msanders/snipmate.vim.git
github.com/vim-scripts/taglist.vim.git
- github.com/Townk/vim-autoclose.git
github.com/tpope/vim-commentary.git
github.com/mirell/vim-matchit.git
github.com/tpope/vim-repeat.git
@@ -23,5 +23,11 @@ GIT_URLS="
[ ! -d $DIR/bundle ] && mkdir $DIR/bundle
cd $DIR/bundle
for url in $GIT_URLS; do
- git clone "$PROTO://$url"
+ gitdir=${url##*/}
+ dir=${gitdir%.git}
+ if [ -d "$dir/.git" ]; then
+ cd $dir && echo "update $dir" && git pull; cd ..
+ else
+ git clone "$PROTO://$url"
+ fi
done
diff --git a/update b/update
deleted file mode 100755
index 59ae847..0000000
--- a/update
+++ /dev/null
@@ -1,7 +0,0 @@
-#! /bin/sh
-
-DIR=$(readlink -f $(dirname $0))
-curl -so $DIR/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/HEAD/autoload/pathogen.vim
-for repo in $DIR/bundle/*; do
- echo -en " ${repo##*/}\n " && cd $repo && git pull
-done