Skip to content

Commit

Permalink
Script updated.
Browse files Browse the repository at this point in the history
It will clean up the _diagrams_ directory removing the old `*.png` files.
  • Loading branch information
diegosanchez committed Sep 1, 2021
1 parent e5df1b4 commit 38e69c8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
Binary file added diagrams/classes/clase_localize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added diagrams/classes/clase_mensaje.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added diagrams/classes/herencia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion scripts/render_diagrams.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
#!/bin/sh

find diagrams/ -name '*.plantuml' -exec plantuml -v {} \;
diagramsPath="diagrams"

echo 'AVERTENCIA!!!'
echo
echo "Todos los archivos '*.png' dentro de \"$diagramsPath\" serán borrados."
echo "Se regeneraran a partir de los archivos '*.plantuml'."
echo

read -t 3 -n 1 -p "Desea continuar (y/N)? " answer
[ -z "$answer" ] && answer="n"

if [ "$answer" == "y" ]
then
find $diagramsPath -name '*.plantuml' -exec plantuml -v {} \;
fi

0 comments on commit 38e69c8

Please sign in to comment.