-
Notifications
You must be signed in to change notification settings - Fork 12
/
build
executable file
·22 lines (19 loc) · 1.2 KB
/
build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -e
if ! which inkscape > /dev/null 2>&1; then
echo "Please install inkscape"
exit 1
fi
for svg in namecoin-banner namecoin-banner-white-text namecoin-coin namecoin-coin-transparent-letter; do
# Transparent letter produces a corrupt file for these formats.
if [[ "${svg}" != "namecoin-coin-transparent-letter" ]]; then
inkscape --without-gui --export-ps=ps/${svg}.ps --export-background=black --export-background-opacity=0.0 svg/${svg}.svg
inkscape --without-gui --export-eps=eps/${svg}.eps --export-background=black --export-background-opacity=0.0 svg/${svg}.svg
inkscape --without-gui --export-pdf=pdf/${svg}.pdf --export-background=black --export-background-opacity=0.0 svg/${svg}.svg
inkscape --without-gui --export-emf=emf/${svg}.emf --export-background=black --export-background-opacity=0.0 svg/${svg}.svg
inkscape --without-gui --export-wmf=wmf/${svg}.wmf --export-background=black --export-background-opacity=0.0 svg/${svg}.svg
fi
for size in 100 200 500 1000; do
inkscape --without-gui --export-png=png/${svg}_${size}px.png --export-width ${size} --export-background=black --export-background-opacity=0.0 svg/${svg}.svg
done
done