generate_xlat_images.sh 471 Bytes
Newer Older
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
#! /bin/bash

#
# This script generates the image file used in the ARM Trusted Firmware
# Translation Tables Library V2 Design document from the 'xlat_align.dia' file.
#

set -e

# Usage: generate_image <dia_filename> <layers> <image_filename>
function generate_image
{
	dia				\
		--show-layers=$2	\
		--filter=svg		\
		--export=$3		\
		$1

}

generate_image			\
	xlat_align.dia		\
	bg,translations		\
	xlat_align.svg

inkscape -z xlat_align.svg -e xlat_align.png -d 45