summaryrefslogtreecommitdiff
path: root/docs/plantuml/plantuml_to_svg.sh
blob: 0bf8588bba7f522d47c908a836d0d34f7dee46d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# Convert all PlantUML files in this directory to SVG files. The plantuml_jar
# environment variable must be set to the path to PlantUML JAR file.

if [ -z "$plantuml_jar" ]; then
	echo "Usage: plantuml_jar=/path/to/plantuml.jar $0 *.puml" >&2
	exit 1
fi

java -jar "$plantuml_jar" -nometadata -tsvg "$@"

# vim:set noet sts=8 tw=80: