Documentation rebuilt if local.ent changes
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 27 Mar 2013 12:42:10 +0000 (13:42 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 27 Mar 2013 12:42:10 +0000 (13:42 +0100)
configure.ac
doc/Makefile.am
doc/local.ent.in [deleted file]
doc/local0.ent.in [new file with mode: 0644]

index 5ca970e..3475482 100644 (file)
@@ -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 \
 "------------------------------------------------------------------------
index bf131c9..bc36256 100644 (file)
@@ -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 (file)
index 7b2eb41..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<!ENTITY version "@VERSION@">
diff --git a/doc/local0.ent.in b/doc/local0.ent.in
new file mode 100644 (file)
index 0000000..7b2eb41
--- /dev/null
@@ -0,0 +1 @@
+<!ENTITY version "@VERSION@">