2016-08-04 11:21:31 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-11-14 07:01:35 +01:00
|
|
|
set +e
|
2016-11-01 14:22:07 +01:00
|
|
|
|
2016-11-13 19:59:53 +01:00
|
|
|
chmod ao-rwx ~/.ssh/id_rsa
|
|
|
|
|
2016-11-14 07:01:35 +01:00
|
|
|
set -e
|
|
|
|
|
2016-08-04 11:21:31 +02:00
|
|
|
DOTFILES_PATH="$HOME/dev/dotfiles"
|
|
|
|
mkdir -pv $HOME/dev/
|
2016-11-03 21:57:00 +01:00
|
|
|
ln -vfs "$OUTER_CLONE/.gitconfig.cygwin" $HOME/.gitconfig
|
2016-11-01 14:35:53 +01:00
|
|
|
if [[ ! -d $DOTFILES_PATH ]]; then
|
|
|
|
git clone "$OUTER_CLONE" "$DOTFILES_PATH"
|
|
|
|
fi
|
|
|
|
|
2016-08-04 11:21:31 +02:00
|
|
|
cd "$DOTFILES_PATH"
|
2016-11-01 18:24:18 +01:00
|
|
|
git remote set-url origin https://github.com/cyplo/dotfiles.git
|
2016-11-03 10:43:41 +01:00
|
|
|
git fetch -p
|
|
|
|
git checkout $branch
|
2016-11-04 07:48:38 +01:00
|
|
|
set +e
|
2016-11-01 18:24:18 +01:00
|
|
|
git pull
|
2016-11-04 07:48:38 +01:00
|
|
|
set -e
|
2016-11-01 18:24:18 +01:00
|
|
|
git remote set-url origin git@github.com:cyplo/dotfiles.git
|
|
|
|
# might fail on CI where there are no secret keys
|
|
|
|
set +e
|
2016-11-01 14:35:53 +01:00
|
|
|
git pull
|
2016-11-01 18:24:18 +01:00
|
|
|
set -e
|
2016-11-03 21:18:33 +01:00
|
|
|
unset branch
|
2016-08-05 09:56:31 +02:00
|
|
|
|
|
|
|
export NOSUDO=true
|
|
|
|
export DONT_CHANGE_SHELL=true
|
|
|
|
export NORUST=true
|
2016-08-05 10:14:23 +02:00
|
|
|
export NO_GO=true
|
2019-05-19 21:41:17 +01:00
|
|
|
export DIR=$DOTFILES_PATH
|
2016-09-10 15:19:33 +02:00
|
|
|
export NOYCM=true
|
2016-08-05 09:56:31 +02:00
|
|
|
|
2016-08-05 10:27:31 +02:00
|
|
|
curl https://bootstrap.pypa.io/get-pip.py > /tmp/get-pip.py
|
|
|
|
python /tmp/get-pip.py
|
|
|
|
|
2016-11-01 19:23:13 +01:00
|
|
|
# expose all the binaries fetched during the outer build
|
|
|
|
export PATH="$OUTER_CLONE:$PATH"
|
|
|
|
|
2017-01-24 19:53:30 +00:00
|
|
|
echo "Invoking common configuration script"
|
2019-05-19 21:41:17 +01:00
|
|
|
$DIR/common/up.sh
|
2017-01-24 19:53:30 +00:00
|
|
|
|
|
|
|
echo "Making symlinks"
|
2016-08-21 18:22:40 +02:00
|
|
|
ln -vfs $DIR/windows_cygwin/.minttyrc $HOME/
|
2016-11-03 21:57:00 +01:00
|
|
|
ln -vfs "$DOTFILES_PATH/.gitconfig.cygwin" $HOME/.gitconfig
|
2016-09-10 13:38:42 +02:00
|
|
|
ln -vfs $DIR/.vimrc.cygwin $HOME/.vimrc
|
2016-08-04 11:21:31 +02:00
|
|
|
|