From 1764f6fd8a684accd658da31bcef39b0d51dfa46 Mon Sep 17 00:00:00 2001 From: Eliseu Egewarth Date: Mon, 14 May 2018 11:43:29 -0300 Subject: [PATCH] Adaptando script gerar_grafico_apps.sh Signed-off-by: Eliseu Egewarth --- scripts/{ => django}/gerar_grafico_apps.sh | 3 +++ 1 file changed, 3 insertions(+) rename scripts/{ => django}/gerar_grafico_apps.sh (69%) diff --git a/scripts/gerar_grafico_apps.sh b/scripts/django/gerar_grafico_apps.sh similarity index 69% rename from scripts/gerar_grafico_apps.sh rename to scripts/django/gerar_grafico_apps.sh index 312f04b0c..ab6bf9a84 100755 --- a/scripts/gerar_grafico_apps.sh +++ b/scripts/django/gerar_grafico_apps.sh @@ -1,3 +1,6 @@ #!/bin/bash +git_project_root=$(git rev-parse --show-toplevel) +cd ${git_project_root} + python -c "from sapl.settings import SAPL_APPS; print(*[s.split('.')[-1] for s in SAPL_APPS])" | xargs -t ./manage.py graph_models -d -g -o zzz.png -l fdp