Add documentation cover
[apps/agl-service-can-low-level.git] / docs / resources / make_cover.sh
1 #!/bin/bash
2
3 cat cover.svg | sed -e 's/{title}/Low level CAN binder/' \
4     -e 's/font-size:87.5px/font-size:50px/g' \
5     -e 's/{subtitle}//g' \
6     -e 's/{version}/Version 1.0/g' \
7     -e 's/{date}/March 2017/g' \
8     > /tmp/cover.svg
9
10 inkscape --without-gui --export-png=../cover.jpg \
11     --export-background="#ffffff" -w 1800 -h 2360 /tmp/cover.svg
12
13 inkscape --without-gui --export-png=../cover_small.jpg \
14     --export-background="#ffffff" -w 200 -h 262 /tmp/cover.svg