Fix colors
[oxy-cursors.git] / svgs / generate_cursors.sh
blob5450b4d07f96944f67ef48a4bd863fd364bbc6db
1 #!/bin/bash
3 colors="blue yellow brown grey green violet red purple navy sea_blue emerald hot_orange white viorange"
4 # colors="green"
5 oldDir=$(pwd)
6 # SIZE="24"
8 # mkdir -p pngs
10 for color in $colors; do
12 echo "Generating cursors for the color: $color"
14 mkdir -p ../cursors
15 mkdir -p ../cursors/$color;
16 cd ../cursors/$color/
18 # Clean out old stuff before
19 rm -rf *
20 cd $oldDir
22 cp ../pngs/$color/*.png ../cursors/$color/
23 cp ../configs/*.in ../cursors/$color/
24 cd ../cursors/$color/
26 for icon in $(ls *.in); do
27 xcursorgen $icon $( echo $icon | sed s/\.in$//g )
28 # inkscape --without-gui --export-png=$( echo $icon | sed s/.svg// ).png --export-dpi=72 --export-background-opacity=0 --export-width=$SIZE --export-height=$SIZE $icon 2> /dev/null
29 done
31 rm *.png
32 rm *.in
33 cd $oldDir
34 done