forked from cr0ybot/ingress-logos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
convert-formats.sh
executable file
·31 lines (29 loc) · 982 Bytes
/
convert-formats.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
for folder in */ ; do
for file in ./$folder*.svg
do
if [ ! -f "./$folder`basename $file .svg`.png" ]; then
/usr/bin/inkscape -z -f "${file}" -w 640 -e "./$folder`basename $file .svg`.png"
fi
if [ ! -f "./$folder`basename $file .svg`.eps" ]; then
/usr/bin/inkscape -f "${file}" -E "./$folder`basename $file .svg`.eps"
fi
if [ ! -f "./$folder`basename $file .svg`.pdf" ]; then
/usr/bin/inkscape -f "${file}" -E "./$folder`basename $file .svg`.pdf"
fi
done
done
for folder in ./*/*/ ; do
for file in ./$folder*.svg
do
if [ ! -f "./$folder`basename $file .svg`.ong" ]; then
/usr/bin/inkscape -z -f "${file}" -w 640 -e "./$folder`basename $file .svg`.png"
fi
if [ ! -f "./$folder`basename $file .svg`.eps" ]; then
/usr/bin/inkscape -f "${file}" -E "./$folder`basename $file .svg`.eps"
fi
if [ ! -f "./$folder`basename $file .svg`.pdf" ]; then
/usr/bin/inkscape -f "${file}" -E "./$folder`basename $file .svg`.pdf"
fi
done
done