Improved the new version
[oxy-cursors.git] / svgs / generate_cursors.sh
blob5684b87c4df4dd99b2d12860613c9f2986f4ab7c
1 #!/bin/bash
3 colors="blue yellow brown grey green violet red purple navy sea_blue emerald hot_orange white"
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 cp ../pngs/$color/*.png ../cursors/$color/
17 cp ../configs/*.in ../cursors/$color/
18 cd ../cursors/$color/
20 for icon in $(ls *.in); do
21 xcursorgen $icon $( echo $icon | sed s/\.in$//g )
22 # 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
23 done
25 rm *.png
26 rm *.in
27 cd $oldDir
28 done