Skip to content

Commit

Permalink
change upd process
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett committed Aug 18, 2012
1 parent 75c6dda commit fc6c25a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 17 deletions.
17 changes: 0 additions & 17 deletions bootstrap.sh

This file was deleted.

32 changes: 32 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash
function link_file {
source="${PWD}/$1"
target="${HOME}/${1/_/.}"

if [ -e "${target}" ]; then
mv $target $target.bak
fi

ln -sf ${source} ${target}
}

if [ "$1" = "vim" ]; then
for i in _vim*
do
link_file $i
done
else
for i in _*
do
link_file $i
done
fi

git submodule sync
git submodule init
git submodule update
git submodule foreach git pull origin master
git submodule foreach git submodule init
git submodule foreach git submodule update


5 changes: 5 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

git submodule foreach git pull origin master
git submodule foreach git submodule foreach git pull origin master

0 comments on commit fc6c25a

Please sign in to comment.