| 1 | #!/usr/bin/env bash |
| 2 | # SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | |
| 4 | path=$(dirname "$0") |
| 5 | cd "${path}" || exit 1 |
| 6 | |
| 7 | if [ ! -f "plantuml.jar" ] |
| 8 | then |
| 9 | echo >&2 "Please download 'plantuml.jar' from http://plantuml.com/ and put it the same folder with me." |
| 10 | exit 1 |
| 11 | fi |
| 12 | |
| 13 | for x in *.puml |
| 14 | do |
| 15 | [ "${x}" = "config.puml" ] && continue |
| 16 | |
| 17 | echo >&2 "Working on ${x}..." |
| 18 | java -jar plantuml.jar -tpng "${x}" |
| 19 | java -jar plantuml.jar -tsvg "${x}" |
| 20 | # java -jar plantuml.jar -ttxt "${x}" |
| 21 | done |