aboutsummaryrefslogtreecommitdiffstats
path: root/docs/resources/make_cover.sh
blob: bdbe414d1e95a6e0567749982a5f06fc9afdfdf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

cat cover.svg | sed -e 's/{title}/Low Level CAN binding/' \
    -e 's/font-size:87.5px/font-size:50px/g' \
    -e 's/{subtitle}//g' \
    -e 's/{version}/Version 1.0/g' \
    -e 's/{date}/March 2017/g' \
    > /tmp/cover.svg

inkscape --without-gui --export-png=../cover.jpg \
    --export-background="#ffffff" -w 1800 -h 2360 /tmp/cover.svg

inkscape --without-gui --export-png=../cover_small.jpg \
    --export-background="#ffffff" -w 200 -h 262 /tmp/cover.svg