1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-07-01 02:19:09 +00:00

removed duplicated viewBox problem with more updated Inkscape

This commit is contained in:
Andrea Giammarchi 2015-04-09 10:18:05 +01:00
parent 990fa702a2
commit 264989b2df

5
svg.sh
View File

@ -16,8 +16,9 @@ viewport() {
content=$(
cat "$f" |
sed 's/<!-- Created with Inkscape (http:\/\/inkscape.org\/) -->//' |
sed 's/width="47.5"/viewBox="0 0 47.5 47.5"/' |
sed 's/height="47.5"/style="enable-background:new 0 0 47.5 47.5;"/' |
sed 's/viewBox="0 0 47.5 47.5"//' |
sed 's/height="47.5"/viewBox="0 0 47.5 47.5"/' |
sed 's/width="47.5"/style="enable-background:new 0 0 47.5 47.5;"/' |
sed -e ':a' -e 'N' -e '$!ba' -e 's/\n//g' |
sed -e 's/ */ /g' |
sed -e 's/ \/>/\/>/g'