Archived
1
0

by_json: Add a date on SVG result files

This commit is contained in:
Olivier DOSSMANN 2020-02-10 12:41:19 +01:00
parent af5872d98e
commit 23b6950f88
2 changed files with 9 additions and 5 deletions

View File

@ -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:

View File

@ -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).