colors.sh 555 Bytes
Newer Older
1 2
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
David Hrbáč's avatar
David Hrbáč committed
3 4
  git pull --rebase origin colors
  git pull --rebase 
5
  echo "Setting color to: $i, ${i/ /_}, color_${i/ /_}"
6 7 8
  #git checkout -b color_${i/ /_}
  git checkout color_${i/ /_}
  sed -ri "s/(primary: ').*'/\1$i'/" mkdocs.yml
David Hrbáč's avatar
David Hrbáč committed
9
  #git cherry-pick bd8e358 
David Hrbáč's avatar
David Hrbáč committed
10
  git commit -am "Setting color to: $i"
11 12 13
  git push --set-upstream origin color_${i/ /_}
  git checkout colors
done