colors.sh 630 Bytes
Newer Older
1 2 3
for i in {"red","pink","purple","deep purple","indigo","blue","light blue","cyan","teal","green","light green","lime","yellow","amber","orange","deep orange","brown","grey","blue grey"}
do
  echo "Setting color to: $i, ${i/ /_}, color_${i/ /_}"
David Hrbáč's avatar
David Hrbáč committed
4 5
  #git checkout -b color_${i/ /_}
  git checkout color_${i/ /_}
David Hrbáč's avatar
David Hrbáč committed
6
  #rm -fr "/home/hrb33/Dokumenty/dev/it4i/docs.it4i.git/.git/rebase-apply"
David Hrbáč's avatar
David Hrbáč committed
7 8
  git pull --rebase origin colors
  git pull --rebase 
9
  sed -ri "s/(primary: ').*'/\1$i'/" mkdocs.yml
David Hrbáč's avatar
David Hrbáč committed
10
  #git cherry-pick bd8e358 
David Hrbáč's avatar
David Hrbáč committed
11
  git commit -am "Setting color to: $i"
12 13 14
  git push --set-upstream origin color_${i/ /_}
  git checkout colors
done