images/smilies/render-smilies.sh
author Dan
Sun, 26 Apr 2009 08:03:42 -0400
changeset 944 073a42e4177f
parent 0 images/smilies/convert.sh@902822492a68
permissions -rw-r--r--
Renamed smiley conversion script (more descriptive); fixed +x on cli-core.php (both rpmlint warnings, thanks Neal)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
902822492a68 Initial population
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     1
#!/bin/bash
902822492a68 Initial population
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     2
for f in *.svg; do
902822492a68 Initial population
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     3
    echo Converting $f
902822492a68 Initial population
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     4
    fname=`echo $f | cut -d '.' -f 1`
902822492a68 Initial population
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     5
    rm -f $fname.png
902822492a68 Initial population
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     6
    inkscape -z -f $f -w 22 -h 22 -e ./$fname.png
902822492a68 Initial population
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     7
done