Improve Makefile again
This commit is contained in:
parent
39700b2277
commit
5051d7ff87
1 changed files with 23 additions and 23 deletions
46
Makefile
46
Makefile
|
@ -67,30 +67,30 @@ deploy:
|
|||
|
||||
|
||||
pull:
|
||||
if git config remote.github.url > /dev/null; then
|
||||
git pull github main
|
||||
else
|
||||
git remote add github https://github.com/c3woc/c3woc-website.git
|
||||
git pull github main
|
||||
fi
|
||||
if git config remote.backwesen.url > /dev/null; then
|
||||
git pull backwesen main
|
||||
else
|
||||
git remote add backwesen https://backwesen.de/c3woc/webseite.git
|
||||
git pull backwesen main
|
||||
fi
|
||||
if git config remote.github.url > /dev/null; then \
|
||||
git pull github main; \
|
||||
else \
|
||||
git remote add github https://github.com/c3woc/c3woc-website.git; \
|
||||
git pull github main; \
|
||||
fi; \
|
||||
if git config remote.backwesen.url > /dev/null; then \
|
||||
git pull backwesen main; \
|
||||
else \
|
||||
git remote add backwesen https://backwesen.de/c3woc/webseite.git; \
|
||||
git pull backwesen main; \
|
||||
fi; \
|
||||
git pull origin main
|
||||
|
||||
push:
|
||||
if git config remote.github.url > /dev/null; then
|
||||
git push github main
|
||||
else
|
||||
git remote add github https://github.com/c3woc/c3woc-website.git
|
||||
git push github main
|
||||
fi
|
||||
if git config remote.backwesen.url > /dev/null; then
|
||||
git push backwesen main
|
||||
else
|
||||
git remote add backwesen https://backwesen.de/l3d/webseite.git
|
||||
git push github main
|
||||
if git config remote.github.url > /dev/null; then \
|
||||
git push github main; \
|
||||
else \
|
||||
git remote add github https://github.com/c3woc/c3woc-website.git; \
|
||||
git push github main; \
|
||||
fi; \
|
||||
if git config remote.backwesen.url > /dev/null; then \
|
||||
git push backwesen main; \
|
||||
else \
|
||||
git remote add backwesen https://backwesen.de/l3d/webseite.git; \
|
||||
git push github main; \
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue