olaf neophyte and de.po updates, valgrind tweaks, delete green lady, inkscape dpi=96
[goodguy/history.git] / cinelerra-5.1 / plugins / theme_neophyte / data / allsvgstopngs.sh
1 #!/bin/bash
2 # This is a little utility that make all pngs that this theme needs
3
4 if [ -z "$(which inkscape)" ]; then
5   echo "Error: program inkscape not found."
6   exit 1
7 fi
8
9 var="$@"
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.
13   Z=0
14   for i in $SOURCE ; do
15       let Z+=1
16       echo "  [$Z] Convert: $i ..."
17       inkscape -e $(basename "$i" .svg).png Source/"$i"
18   done
19 else
20     for i in $@; do
21         case "$i" in
22             *.svg) inkscape -e $(basename "$i" .svg).png "$i" ;;
23             *) echo "Error: This program only converts SVG to PNG." ;;
24         esac
25     done
26 fi