Fri Dec 17 23:26:07 PST 2004
- Previous message: [Slony1-commit] By darcyb: More docbook fixes, detect the correct version of docbook
- Next message: [Slony1-commit] By darcyb: Add Internals section, this section has a references of all
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
Add schemadoc building support
Modified Files:
--------------
slony1-engine/doc/adminguide:
Makefile (r1.3 -> r1.4)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/doc/adminguide/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -Ldoc/adminguide/Makefile -Ldoc/adminguide/Makefile -u -w -r1.3 -r1.4
--- doc/adminguide/Makefile
+++ doc/adminguide/Makefile
@@ -204,4 +204,21 @@
# index
rm -f HTML.index $(GENERATED_SGML)
# text
- rm -f INSTALL HISTORY regress_README
+ rm -f INSTALL HISTORY README
+
+BASEDIR=$(slony_top_builddir)/src/backend
+BASESQL=$(BASEDIR)/slony1_base.sql
+BASEFUNS=$(BASEDIR)/slony1_funcs.sql
+XIDSQL=localxid.sql
+TEMPDB=schemadoc
+TEMPSCHEMA=schemadoc
+CREATELANG=$(pgbindir)/createlang # That's how it is for me...
+
+schemadoc.xml: $(BASESQL) $(BASEFUNS) $(XIDDIR)
+ @$(pgbindir)/createdb $(TEMPDB) && ( \
+ $(CREATELANG) plpgsql $(TEMPDB) 2>/dev/null ; \
+ echo "drop schema $(TEMPSCHEMA);create schema $(TEMPSCHEMA);" | $(pgbindir)/psql $(TEMPDB) && \
+ cat $(XIDSQL) $(BASEFUNS) $(BASESQL) | sed -e "s/@NAMESPACE@/$(TEMPSCHEMA)/g" -e "s/@CLUSTERNAME@/$(TEMPSCHEMA)/g" | $(pgbindir)/psql $(TEMPDB) && \
+ $(PGAUTODOC) -d $(TEMPDB) -s $(TEMPSCHEMA) -t xml -f schemadoc ;\
+ $(pgbindir)/dropdb $(TEMPDB) >/dev/null 2>&1 \
+ ) || echo "unable to createdb $(TEMPDB)"
- Previous message: [Slony1-commit] By darcyb: More docbook fixes, detect the correct version of docbook
- Next message: [Slony1-commit] By darcyb: Add Internals section, this section has a references of all
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list