9 lines
230 B
Bash
Executable file
9 lines
230 B
Bash
Executable file
#!/bin/zsh
|
|
#dep:inkscape xmllint
|
|
for i in "$@"; do
|
|
inkscape --without-gui --file=$i --export-plain-svg=/dev/stdout \
|
|
| tr -d '\n' \
|
|
| sed -e 's!</\?tspan[^>]*>!!g' \
|
|
| xmllint --compress /dev/stdin --output ${i:r}.svg
|
|
done
|