File indexing completed on 2024-12-15 05:05:15
0001 #!/bin/sh 0002 0003 if [ $# -ne 1 ]; 0004 then echo Usage: $0 file.svgz 0005 exit 1 0006 fi 0007 0008 if [ ! -f "$1" ]; then 0009 echo "you must specify a valid svg" 0010 exit 1 0011 fi 0012 0013 inkscape "$1" 0014 0015 file="${1%.*}" 0016 mv "$1" "$file.svg.gz" 0017 gunzip "$file.svg.gz" 0018 0019 echo Processing "$file" 0020 0021 /usr/bin/perl -p -i -e "s/color:#[^;]*;fill:currentColor/fill:currentColor/g" "$file.svg" 0022 0023 gzip "$file.svg" 0024 mv "$file.svg.gz" "$file.svgz"