mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 14:39:29 +00:00
14 lines
364 B
Bash
Executable File
14 lines
364 B
Bash
Executable File
#!/bin/ksh
|
|
|
|
targetdir="$(pwd)/static/assets/diagrams"
|
|
|
|
rm -rf "$targetdir/*"
|
|
cp $(pwd)/writeup/diagrams/*.png $targetdir
|
|
|
|
for diag in $(find . -path "node_modules" -prune -o -name "*.puml" -print); do
|
|
ofilename="$(basename $diag .puml).png"
|
|
|
|
java -jar "utility/uml/plantuml-1.2021.13.jar" $diag -o $targetdir
|
|
echo "Compiled $diag to $targetdir/$ofilename"
|
|
done
|