build.sh 468 B

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