by_json: Add a date on SVG result files
This commit is contained in:
parent
af5872d98e
commit
23b6950f88
@ -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:
|
||||
|
@ -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).
|
||||
|
Reference in New Issue
Block a user