mirror of
https://github.com/twitter/twemoji.git
synced 2024-06-15 03:35:16 +00:00
Remove old svg script
This commit is contained in:
parent
a46d6f11d4
commit
0c60d81123
34
svg.sh
34
svg.sh
@ -1,34 +0,0 @@
|
||||
createsvg() {
|
||||
local d
|
||||
local svg
|
||||
for d in assets/*.ai; do
|
||||
svg=$(echo "$d" | sed 's/.ai/.svg/')
|
||||
echo "creating $svg ..."
|
||||
inkscape -f "$d" -l "$svg"
|
||||
done
|
||||
mkdir -p svg
|
||||
mv assets/*.svg svg/
|
||||
}
|
||||
|
||||
viewport() {
|
||||
local f
|
||||
for f in svg/*.svg; do
|
||||
content=$(
|
||||
cat "$f" |
|
||||
sed 's/<!-- Created with Inkscape (http:\/\/inkscape.org\/) -->//' |
|
||||
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'
|
||||
)
|
||||
echo "$f"
|
||||
echo "$content" >"$f"
|
||||
|
||||
done
|
||||
}
|
||||
|
||||
createsvg
|
||||
|
||||
viewport
|
Loading…
Reference in New Issue
Block a user