2 # This is a little utility that make all pngs that this theme needs
4 if [ -z "$(which inkscape)" ]; then
5 echo "Error: program inkscape not found."
10 if [ -z "$var" ]; then
11 SOURCE=$(ls -1 Source | grep '\.svg$' | grep -v '_all.svg$\|^0\.[0-9A-Za-z].*\.svg$')
12 echo $(echo "$SOURCE" | wc -l) SVG files found.
16 echo " [$Z] Convert: $i ..."
17 inkscape -e $(basename "$i" .svg).png Source/"$i"
22 *.svg) inkscape -e $(basename "$i" .svg).png "$i" ;;
23 *) echo "Error: This program only converts SVG to PNG." ;;