colors.sh 642 Bytes
Newer Older
1
#!/bin/bash
2 3 4
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/ /_}"
5 6
  #git checkout -b color_${i/ /_}
  git checkout color_${i/ /_}
7
  #rm -fr "/home/hrb33/Dokumenty/dev/it4i/docs.it4i.git/.git/rebase-apply"
8 9
  git pull --rebase origin colors
  git pull --rebase 
10
  sed -ri "s/(primary: ').*'/\1$i'/" mkdocs.yml
11
  #git cherry-pick bd8e358 
12
  git commit -am "Setting color to: $i"
13 14 15
  git push --set-upstream origin color_${i/ /_}
  git checkout colors
done