File: svg2png.sh.in

package info (click to toggle)
human-icon-theme 0.28.debian-3
  • links: PTS
  • area: non-free
  • in suites: lenny
  • size: 3,912 kB
  • ctags: 3
  • sloc: makefile: 1,161; sh: 29
file content (18 lines) | stat: -rw-r--r-- 321 bytes parent folder | download | duplicates (11)
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