From 308e7677170d56c4270d82af1a37375038da5d72 Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Mon, 18 Jun 2018 15:26:23 +0200 Subject: [logger] Generate .png file from .dia --- lib/kernel/doc/src/.gitignore | 1 + lib/kernel/doc/src/Makefile | 14 +++++++++++++- lib/kernel/doc/src/logger_arch.dia | Bin 0 -> 2527 bytes lib/kernel/doc/src/logger_arch.png | Bin 32187 -> 117205 bytes lib/kernel/doc/src/logger_chapter.xml | 2 ++ 5 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 lib/kernel/doc/src/.gitignore create mode 100644 lib/kernel/doc/src/logger_arch.dia (limited to 'lib/kernel') diff --git a/lib/kernel/doc/src/.gitignore b/lib/kernel/doc/src/.gitignore new file mode 100644 index 0000000000..c2813ac866 --- /dev/null +++ b/lib/kernel/doc/src/.gitignore @@ -0,0 +1 @@ +*.eps \ No newline at end of file diff --git a/lib/kernel/doc/src/Makefile b/lib/kernel/doc/src/Makefile index f34eee71ba..fceba14515 100644 --- a/lib/kernel/doc/src/Makefile +++ b/lib/kernel/doc/src/Makefile @@ -84,6 +84,7 @@ XML_CHAPTER_FILES = \ BOOK_FILES = book.xml +# The .png file is generated from a .dia file with target 'update_png' IMAGE_FILES = \ logger_arch.png @@ -111,6 +112,17 @@ SPECS_FILES = $(XML_REF3_FILES:%.xml=$(SPECDIR)/specs_%.xml) TOP_SPECS_FILE = specs.xml +# ---------------------------------------------------- +# FIGURES +# ---------------------------------------------------- +# In order to update the figures you have to have both dia +# and imagemagick installed. +# The generated .png file must be committed. + +update_png: + dia --export=logger_arch.eps logger_arch.dia + convert logger_arch.eps -resize 65% logger_arch.png + # ---------------------------------------------------- # FLAGS # ---------------------------------------------------- @@ -147,7 +159,7 @@ clean clean_docs: rm -f $(MAN6DIR)/* rm -f $(TOP_PDF_FILE) $(TOP_PDF_FILE:%.pdf=%.fo) rm -f $(SPECDIR)/* - rm -f errs core *~ + rm -f errs core *~ *.eps $(SPECDIR)/specs_erl_prim_loader_stub.xml: $(gen_verbose)escript $(SPECS_EXTRACTOR) $(SPECS_FLAGS) \ diff --git a/lib/kernel/doc/src/logger_arch.dia b/lib/kernel/doc/src/logger_arch.dia new file mode 100644 index 0000000000..97be31856e Binary files /dev/null and b/lib/kernel/doc/src/logger_arch.dia differ diff --git a/lib/kernel/doc/src/logger_arch.png b/lib/kernel/doc/src/logger_arch.png index a3a863c511..70933a5a41 100644 Binary files a/lib/kernel/doc/src/logger_arch.png and b/lib/kernel/doc/src/logger_arch.png differ diff --git a/lib/kernel/doc/src/logger_chapter.xml b/lib/kernel/doc/src/logger_chapter.xml index f4a752bde9..23a289f2ee 100644 --- a/lib/kernel/doc/src/logger_chapter.xml +++ b/lib/kernel/doc/src/logger_chapter.xml @@ -69,6 +69,8 @@ figure shows two log handlers, but any number of handlers can be installed.

+ Conceptual Overview -- cgit v1.2.3