add more spacing
[personal-kdebase.git] / runtime / pics / oxygen / icon-remove.sh
blobe9125419304dc58f19ea4087d2542219ef7e8beb
1 #!/bin/sh
3 if [ $# -ne 1 ]; then
4 echo "You need to supply exactly one argument, e.g.:"
5 echo "$0 actions/contents2"
6 exit
7 fi
9 # Split the two arguments into their category and icon name parts.
10 src="$1"
11 src_category=${src%/*}
12 src_icon=${src#*/}
14 # Remove the scalable icon.
15 if [ -f scalable/$src.svgz ]; then
16 echo "Removing scalable/$src.svgz..."
17 svn rm scalable/$src.svgz
18 echo
21 # Remove the optimized small versions of the icon.
22 for dir in 8x8 16x16 22x22 32x32 48x48 64x64 128x128; do
23 if [ -f scalable/$src_category/small/$dir/$src_icon.svgz ]; then
24 echo "Removing scalable/$src_category/small/$dir/$src_icon.svgz..."
25 svn rm scalable/$src_category/small/$dir/$src_icon.svgz
26 echo
28 done
30 # Remove the rendered PNGs.
31 for dir in 8x8 16x16 22x22 32x32 48x48 64x64 128x128; do
32 if [ -f $dir/$src.png ]; then
33 echo "Removing $dir/$src.png..."
34 svn rm $dir/$src.png
35 echo
37 done