File: svg2png.sh.in

package info (click to toggle)
tango-icon-theme 0.7.2%2Bcvs06.07.31-1
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 10,804 kB
  • ctags: 13
  • sloc: makefile: 1,386; sh: 578
file content (18 lines) | stat: -rw-r--r-- 321 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

SVGCONVERT=@SVGCONVERT@

ICONTEST=`echo ${3} | grep "icon$"`
if [ ! -z "${ICONTEST}" ]; then
    exit 0
fi

ICONNAME=`echo ${3} | sed -e "s/.svg//"`
if test `basename $SVGCONVERT` = "rsvg"; then
    OPTIONS="-w ${1} -h ${1}"
else
    OPTIONS="${1} ${1}"
fi


${SVGCONVERT} ${OPTIONS} ${3} ${2}/${ICONNAME}.png