From 07bf59c106e8d2492c5743019c2932a001e48181 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 27 Mar 2013 13:42:10 +0100 Subject: [PATCH] Documentation rebuilt if local.ent changes --- configure.ac | 8 ++++++-- doc/Makefile.am | 7 +++++-- doc/local.ent.in | 1 - doc/local0.ent.in | 1 + 4 files changed, 12 insertions(+), 5 deletions(-) delete mode 100644 doc/local.ent.in create mode 100644 doc/local0.ent.in diff --git a/configure.ac b/configure.ac index 5ca970e..3475482 100644 --- a/configure.ac +++ b/configure.ac @@ -311,7 +311,7 @@ AC_OUTPUT([ include/Makefile include/idzebra/Makefile tab/Makefile doc/Makefile - doc/local.ent + doc/local0.ent doc/common/Makefile doc/common/print.dsl test/Makefile test/gils/Makefile test/usmarc/Makefile test/api/Makefile @@ -334,7 +334,11 @@ AC_OUTPUT([ Doxyfile win/version.nsi include/idzebra/version.h -],[sed s%echo_source=yes%echo_source=no%g < idzebra-config-2.0 > util/idzebra-config-2.0 && chmod +x idzebra-config-2.0 util/idzebra-config-2.0]) +],[ + sed s%echo_source=yes%echo_source=no%g < idzebra-config-2.0 > util/idzebra-config-2.0 && chmod +x idzebra-config-2.0 util/idzebra-config-2.0 + diff doc/local.ent doc/local0.ent >/dev/null 2>/dev/null \ + || cp doc/local0.ent doc/local.ent +]) echo \ "------------------------------------------------------------------------ diff --git a/doc/Makefile.am b/doc/Makefile.am index bf131c9..bc36256 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -24,7 +24,8 @@ XMLFILES = \ idzebra.xml \ zebrasrv-options.xml \ zebrasrv-synopsis.xml \ - zebrasrv-virtual.xml + zebrasrv-virtual.xml \ + local.ent #examples.xml #quickstart.xml @@ -42,9 +43,11 @@ MANFILES=zebraidx$(PACKAGE_SUFFIX).1 \ doc_DATA = $(HTMLFILES) $(PNGFILES) man_MANS = $(MANFILES) +$(MANFILES): local.ent + EXTRA_DIST = $(XMLFILES) $(XMLMAN) \ $(doc_DATA) zebra.eps $(man_MANS) \ - marc_indexing.xml entities.ent local.ent.in domfilter.svg + marc_indexing.xml entities.ent domfilter.svg zebraidx$(PACKAGE_SUFFIX).1: zebraidx.xml $(MAN_COMPILE) $(srcdir)/zebraidx.xml diff --git a/doc/local.ent.in b/doc/local.ent.in deleted file mode 100644 index 7b2eb41..0000000 --- a/doc/local.ent.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/doc/local0.ent.in b/doc/local0.ent.in new file mode 100644 index 0000000..7b2eb41 --- /dev/null +++ b/doc/local0.ent.in @@ -0,0 +1 @@ + -- 1.7.10.4