2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 18:08:16 +00:00
kea/doc/sphinx/make-uml.sh.in

29 lines
704 B
Bash
Raw Normal View History

#!/bin/sh
2025-03-11 10:58:45 +02:00
set -eu
2025-06-20 11:20:03 +03:00
cd '@srcdir@/uml'
2025-02-28 11:00:03 +02:00
if test '@HAVE_PLANTUML@' = 'no'; then
exit 0
fi
# uml-to-png
# shellcheck disable=SC2043
for uml in @umls@; do @PLANTUML@ -tpng "$uml"; done
# uml-to-svg
# shellcheck disable=SC2043
for uml in @umls@; do @PLANTUML@ -tsvg "$uml"; done
# format-svgs
2025-02-28 11:00:03 +02:00
if test '@HAVE_XMLLINT' != 'no'; then
# shellcheck disable=SC2043
for svg in @svgs@; do xmllint --format "$svg" > tmp; mv tmp "$svg"; done
else
printf 'WARNING: xmllint not found. SVGs not formatted.\n'
fi
# uml-to-txt
# shellcheck disable=SC2043
for uml in @tumls@; do @PLANTUML@ -ttxt "$uml"; done
# shellcheck disable=SC2043
for txt in @txts@; do sed 's/ *$//g' "$txt" > tmp; mv tmp "$txt"; done