4 echo "You need to supply two arguments, e.g.:"
5 echo "$0 actions/ark_extract actions/archive-extract"
9 # Split the two arguments into their category and icon name parts.
11 src_category
=${src%/*}
15 dest_category
=${dest%/*}
18 # Move the scalable icon.
19 if [ -f scalable
/$src.svgz
]; then
20 echo "Moving scalable/$src.svgz to scalable/$dest.svgz..."
21 svn
mv scalable
/$src.svgz scalable
/$dest.svgz
25 # Move the optimized small versions of the icon.
26 for dir
in 8x8
16x16
22x22
32x32
48x48
64x64
128x128
; do
27 if [ -f scalable
/$src_category/small
/$dir/$src_icon.svgz
]; then
28 echo "Moving scalable/$src_category/small/$dir/$src_icon.svgz"
29 echo " to scalable/$dest_category/small/$dir/$dest_icon.svgz..."
30 svn
mv scalable
/$src_category/small
/$dir/$src_icon.svgz scalable
/$dest_category/small
/$dir/$dest_icon.svgz
35 # Move the rendered PNGs.
36 for dir
in 8x8
16x16
22x22
32x32
48x48
64x64
128x128
; do
37 if [ -f $dir/$src.png
]; then
38 echo "Moving $dir/$src.png to $dir/$dest.png..."
39 svn
mv $dir/$src.png
$dir/$dest.png