Antonio Nino Diaz | b5d6809 | 2017-05-23 11:49:22 +0100 | [diff] [blame^] | 1 | #! /bin/bash |
2 | |||||
3 | # | ||||
4 | # This script generates the image file used in the ARM Trusted Firmware | ||||
5 | # Translation Tables Library V2 Design document from the 'xlat_align.dia' file. | ||||
6 | # | ||||
7 | |||||
8 | set -e | ||||
9 | |||||
10 | # Usage: generate_image <dia_filename> <layers> <image_filename> | ||||
11 | function generate_image | ||||
12 | { | ||||
13 | dia \ | ||||
14 | --show-layers=$2 \ | ||||
15 | --filter=svg \ | ||||
16 | --export=$3 \ | ||||
17 | $1 | ||||
18 | |||||
19 | } | ||||
20 | |||||
21 | generate_image \ | ||||
22 | xlat_align.dia \ | ||||
23 | bg,translations \ | ||||
24 | xlat_align.svg | ||||
25 | |||||
26 | inkscape -z xlat_align.svg -e xlat_align.png -d 45 |