[sr-dev] git:master: db docs(k): better to place this in the existing dir 'databases '

Henning Westerholt henning.westerholt at 1und1.de
Thu Oct 1 18:44:05 CEST 2009


Module: sip-router
Branch: master
Commit: 677f0b3e53cc5fa26d332144b87098fc3c1da215
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=677f0b3e53cc5fa26d332144b87098fc3c1da215

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Thu Oct  1 18:40:07 2009 +0200

db docs(k): better to place this in the existing dir 'databases'

---

 lib/srdb1/schema/Makefile |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/lib/srdb1/schema/Makefile b/lib/srdb1/schema/Makefile
index 354bb4e..d5a5af1 100644
--- a/lib/srdb1/schema/Makefile
+++ b/lib/srdb1/schema/Makefile
@@ -152,33 +152,33 @@ db_berkeley_clean:
 docbook:
 	for FILE in $(TABLES); do \
 		XML_CATALOG_FILES=$(CATALOG) $(XSLTPROC) $(XSLTPROC_FLAGS) \
-		--stringparam dir "$(ROOT)/doc/database" \
+		--stringparam dir "$(ROOT)/doc/databases/kamailio" \
 		--stringparam prefix "$$FILE-" \
 		$(DOCBOOK_XSL) kamailio-"$$FILE".xml ; \
 	done ; \
 
 	# link all documents to one file, to get nicer output
-	echo "<!DOCTYPE book PUBLIC \"-//OASIS//DTD DocBook V4.4//EN\" \"http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd\"[" > "$(ROOT)/doc/database/tables.sgml"
+	echo "<!DOCTYPE book PUBLIC \"-//OASIS//DTD DocBook V4.4//EN\" \"http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd\"[" > "$(ROOT)/doc/databases/kamailio/tables.sgml"
 	
 	# create entities, as xi:include is not available in sgml docbook
 	# substitute '-' for '_', docbook smgl don't like this
-	for FILE in $(wildcard $(ROOT)/doc/database/*.xml); do \
-		echo "  <!ENTITY `basename "$$FILE" | sed -e 's#_#-#g'` SYSTEM \""$$FILE"\">" >> "$(ROOT)/doc/database/tables.sgml" ; \
+	for FILE in $(wildcard $(ROOT)/doc/databases/kamailio/*.xml); do \
+		echo "  <!ENTITY `basename "$$FILE" | sed -e 's#_#-#g'` SYSTEM \""$$FILE"\">" >> "$(ROOT)/doc/databases/kamailio/tables.sgml" ; \
 	done ; \
 	#Include general documentation entities
-	echo "  <!ENTITY % docentities SYSTEM \"../entities.xml\"> %docentities;" >> "$(ROOT)/doc/database/tables.sgml" ; \
-	echo "]>" >> "$(ROOT)/doc/database/tables.sgml"
+	echo "  <!ENTITY % docentities SYSTEM \"../entities.xml\"> %docentities;" >> "$(ROOT)/doc/databases/kamailio/tables.sgml" ; \
+	echo "]>" >> "$(ROOT)/doc/databases/kamailio/tables.sgml"
 	# add bookinfo
-	cat "$(ROOT)/doc/stylesheets/dbschema_k/bookinfo.xml" >> "$(ROOT)/doc/database/tables.sgml"
+	cat "$(ROOT)/doc/stylesheets/dbschema_k/bookinfo.xml" >> "$(ROOT)/doc/databases/kamailio/tables.sgml"
 	# actually include the entities
-	for FILE in $(wildcard $(ROOT)/doc/database/*.xml); do \
-		echo "    &`basename "$$FILE" | sed -e 's#_#-#g'`" >> "$(ROOT)/doc/database/tables.sgml" ; \
+	for FILE in $(wildcard $(ROOT)/doc/databases/kamailio/*.xml); do \
+		echo "    &`basename "$$FILE" | sed -e 's#_#-#g'`" >> "$(ROOT)/doc/databases/kamailio/tables.sgml" ; \
 	done ; \
-	echo "</book>" >> "$(ROOT)/doc/database/tables.sgml"
+	echo "</book>" >> "$(ROOT)/doc/databases/kamailio/tables.sgml"
 
 docbook_clean:
-	- at rm -f $(ROOT)/doc/database/*.xml
-	- at rm -f $(ROOT)/doc/database/tables.sgml
+	- at rm -f $(ROOT)/doc/databases/kamailio/*.xml
+	- at rm -f $(ROOT)/doc/databases/kamailio/tables.sgml
 
 .PHONY: modules modules_clean
 modules:




More information about the sr-dev mailing list