add NORUST option, use it under cygwin

This commit is contained in:
Cyryl Płotnicki-Chudyk 2016-07-31 09:43:37 +02:00
parent 823d487950
commit 017e7ac5c0
2 changed files with 29 additions and 22 deletions

View file

@ -76,6 +76,7 @@ fc-cache -rv
$SUDO fc-cache -rv $SUDO fc-cache -rv
set -e set -e
if [[ -z $NORUST ]]; then
#rust #rust
echo "installing rust" echo "installing rust"
RUSTUP_TEMP="/tmp/blastoff.sh" RUSTUP_TEMP="/tmp/blastoff.sh"
@ -95,14 +96,18 @@ else
git pull git pull
git submodule update --init --recursive git submodule update --init --recursive
fi fi
cargo install -f rustfmt cargo install -f rustfmt
fi
echo "\n" | vim +PluginInstall +qa echo "\n" | vim +PluginInstall +qa
cd "$DIR/.vim/bundle/YouCompleteMe/" cd "$DIR/.vim/bundle/YouCompleteMe/"
git submodule update --init --recursive git submodule update --init --recursive
if [[ -z $NORUST ]]; then
./install.py --racer-completer --clang-completer ./install.py --racer-completer --clang-completer
else
./install.py --clang-completer
fi
# go # go
export GOPATH="$HOME/go" export GOPATH="$HOME/go"

View file

@ -12,6 +12,8 @@ for /f "delims=" %%A in ('%bash% "cd `cygpath $HOMEPATH`/dev/dotfiles && git rev
%bash% "mkdir -pv $HOME/dev/" %bash% "mkdir -pv $HOME/dev/"
%bash% "rm -fr $HOME/dev/dotfiles" %bash% "rm -fr $HOME/dev/dotfiles"
%bash% "git clone `cygpath $HOMEPATH`/dev/dotfiles $HOME/dev/dotfiles" %bash% "git clone `cygpath $HOMEPATH`/dev/dotfiles $HOME/dev/dotfiles"
%bash% "cd $HOME/dev/dotfiles && git remote set-url origin git@github.com:cyplo/dotfiles.git"
%bash% "cd $HOME/dev/dotfiles && git checkout $branch" %bash% "cd $HOME/dev/dotfiles && git checkout $branch"
%bash% "export DIR=$HOME/dev/dotfiles && export NOSUDO=true && export DONT_CHANGE_SHELL=true && bash $DIR/common/configure_fresh_system" %bash% "cd $HOME/dev/dotfiles && git pull"
%bash% "DIR=$HOME/dev/dotfiles NOSUDO=true DONT_CHANGE_SHELL=true NORUST=true $DIR/common/configure_fresh_system"