Update for split repos
very simple and static, but it works
This commit is contained in:
parent
714f8f5c33
commit
0adb4f12a0
27
bootstrap.sh
27
bootstrap.sh
@ -6,25 +6,39 @@ firstRun=0
|
||||
cd ~
|
||||
if [ ! -d ".dotfiles" ]
|
||||
then
|
||||
git clone http://adamgoldsmith.name/cgit/dotfiles.git .dotfiles
|
||||
git clone http://adamgoldsmith.name/cgit/bootstrap.git .dotfiles
|
||||
firstRun=1
|
||||
else
|
||||
echo "~/.dotfiles already exists, not cloning"
|
||||
fi
|
||||
|
||||
echo "Updating .dotfiles"
|
||||
cd .dotfiles
|
||||
if [ $firstRun -eq 1 ]
|
||||
then
|
||||
git remote set-url origin http://adamgoldsmith.name/cgit/dotfiles.git
|
||||
git remote set-url --push origin ssh://adamgoldsmith.name:443/srv/git/dotfiles.git
|
||||
git remote set-url origin http://adamgoldsmith.name/cgit/bootstrap.git
|
||||
git remote set-url --push origin ssh://adamgoldsmith.name:443/srv/git/bootstrap.git
|
||||
else
|
||||
echo "Updating .dotfiles"
|
||||
git pull
|
||||
fi
|
||||
git pull
|
||||
|
||||
echo "Getting emacs, zsh, and git"
|
||||
for i in emacs zsh git
|
||||
do
|
||||
git clone "http://adamgoldsmith.name/cgit/dotfiles/$i.git"
|
||||
cd $i
|
||||
git remote set-url origin http://adamgoldsmith.name/cgit/dotfiles/$i.git
|
||||
git remote set-url --push origin ssh://adamgoldsmith.name:443/srv/git/dotfiles/$i.git
|
||||
cd ..
|
||||
done
|
||||
|
||||
echo "getting prezto"
|
||||
cd zsh
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
||||
echo "Updating .dotfiles/zsh/.zprezto"
|
||||
cd zsh/.zprezto/
|
||||
cd .zprezto
|
||||
if [ $firstRun -eq 1 ]
|
||||
then
|
||||
git remote set-url origin http://adamgoldsmith.name/cgit/prezto.git
|
||||
@ -37,4 +51,3 @@ git submodule update
|
||||
echo "Stowing emacs, zsh, and git"
|
||||
cd ~/.dotfiles/
|
||||
stow emacs zsh git
|
||||
echo 'Didn'\''t stow ssh, please stow that manually with "stow ssh" in the .dotfiles directory if you want that'
|
||||
|
Loading…
Reference in New Issue
Block a user