mirror of
https://github.com/spf13/spf13-vim.git
synced 2024-09-21 07:27:11 +00:00
tweaking the bootstrap file... better error handling
This commit is contained in:
parent
13744bd5cb
commit
925b986b3e
19
bootstrap.sh
19
bootstrap.sh
@ -1,12 +1,29 @@
|
||||
#!/bin/env sh
|
||||
|
||||
warn() {
|
||||
echo "$1" >&2
|
||||
}
|
||||
|
||||
die() {
|
||||
warn "$1"
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo "thanks for installing spf13-vim\n"
|
||||
|
||||
# Backup existing .vim stuff
|
||||
echo "backing up current vim config\n"
|
||||
for i in ~/.vim ~/.vimrc ~/.gvimrc; do [ -e $i ] && mv $i $i.old; done
|
||||
|
||||
|
||||
echo "cloning spf13-vim\n"
|
||||
git clone --recursive git://github.com/spf13/spf13-vim.git ~/.spf13-vim
|
||||
ln -s ~/.spf13-vim/.vimrc ~/.vimrc
|
||||
ln -s ~/.spf13-vim/.vim ~/.vim
|
||||
|
||||
|
||||
# Build command-t for your system
|
||||
echo "building command-t executable\n"
|
||||
echo "command-t depends on ruby and rake to be present\n"
|
||||
cd ~/.vim/bundle/command-t
|
||||
rake make
|
||||
(ruby extconf.rb && make clean && make) || warn "Ruby compilation failed. Ruby not installed, maybe?"
|
||||
|
Loading…
Reference in New Issue
Block a user