File indexing completed on 2024-05-05 04:00:57

0001 #!/bin/sh
0002 
0003 if [ $# -ne 1 ]; then
0004   echo "You need to supply exactly one argument, e.g.:"
0005   echo "$0 actions/contents2"
0006   exit
0007 fi
0008 
0009 # Split the two arguments into their category and icon name parts.
0010 src="$1"
0011 src_category=${src%/*}
0012 src_icon=${src#*/}
0013 
0014 # Remove the scalable icon.
0015 if [ -f scalable/$src.svgz ]; then
0016   echo "Removing scalable/$src.svgz..."
0017   svn rm scalable/$src.svgz
0018   echo
0019 fi
0020 
0021 # Remove the optimized small versions of the icon.
0022 for dir in 8x8 16x16 22x22 32x32 48x48 64x64 128x128 256x256; do
0023   if [ -f scalable/$src_category/small/$dir/$src_icon.svgz ]; then
0024     echo "Removing scalable/$src_category/small/$dir/$src_icon.svgz..."
0025     svn rm scalable/$src_category/small/$dir/$src_icon.svgz
0026     echo
0027   fi
0028 done
0029 
0030 # Remove the rendered PNGs.
0031 for dir in 8x8 16x16 22x22 32x32 48x48 64x64 128x128 256x256; do
0032   if [ -f $dir/$src.png ]; then
0033     echo "Removing $dir/$src.png..."
0034     svn rm $dir/$src.png
0035     echo
0036   fi
0037 done