diff --git a/by_json/Makefile b/by_json/Makefile index f304f20..d1fc16d 100644 --- a/by_json/Makefile +++ b/by_json/Makefile @@ -1,10 +1,12 @@ -all: orgas.svg policies.svg +DATE := $(shell date +'%Y%m%d') + +all: $(DATE)-orgas.svg $(DATE)-policies.svg # All .dot files are generated by gen_%.sh file (gen_orgas.sh for example) %.dot: gen_%.sh bash "$<" "$@" -%.svg: %.dot +$(DATE)-%.svg: %.dot dot -Tsvg "$<" -o "$@" clean: diff --git a/by_json/README.md b/by_json/README.md index c0191d0..d593134 100644 --- a/by_json/README.md +++ b/by_json/README.md @@ -1,6 +1,8 @@ # Presentation -*gen.sh* generates a diagram with **graphviz** with the link between organisations, libraries and users in *rero-ils* project. +*gen_orgas.sh* generates a diagram with **graphviz** with the link between organisations, libraries and users in *rero-ils* project. + +*gen_policies.sh* do the same with link between organisations, libraries, circulation policies and patron\_type/item\_type couples. # Requirements @@ -9,11 +11,11 @@ # Usage - * Open **gen.sh** file + * Open **commons.sh** file * change **RERO\_DIR** variable to point your **rero-ils directory** ``` make clean && make ``` -Result: **organisations.svg** file (can be open with Gimp for example). +Result: **2 files (orgas.svg and policies.svg)** file (can be open with Gimp for example).