]> granicus.if.org Git - docbook-dsssl/commitdiff
added mysql doc sources
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 4 Mar 2008 08:51:02 +0000 (08:51 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 4 Mar 2008 08:51:02 +0000 (08:51 +0000)
contrib/samples/refentry/mysql/.cvsignore [new file with mode: 0644]
contrib/samples/refentry/mysql/Makefile [new file with mode: 0644]

diff --git a/contrib/samples/refentry/mysql/.cvsignore b/contrib/samples/refentry/mysql/.cvsignore
new file mode 100644 (file)
index 0000000..4a8770a
--- /dev/null
@@ -0,0 +1,5 @@
+robots.txt
+common
+index.html
+refman-5.2
+refman-common
diff --git a/contrib/samples/refentry/mysql/Makefile b/contrib/samples/refentry/mysql/Makefile
new file mode 100644 (file)
index 0000000..ba0e9e8
--- /dev/null
@@ -0,0 +1,33 @@
+VERSION=5.2
+BASEURL=http://svn.mysql.com/svnpublic/mysqldoc
+REFMAN=refman-$(VERSION)
+REFMANCOMMON=refman-common
+COMMON=common
+
+MAKEFILE_DOCBOOK = ../../../../xsl/tools/make/Makefile.DocBook
+
+WGET=wget
+WGETFLAGS=-r -nH -l 1 --cut-dirs=2
+
+all: $(REFMAN) $(REFMAN)/Makefile $(REFMANCOMMON) $(COMMON)
+
+$(REFMAN):
+       $(WGET) $(WGETFLAGS) $(BASEURL)/$(REFMAN)
+       $(RM) $(REFMAN)/Makefile
+       cp -p $(MAKEFILE_DOCBOOK) $(REFMAN)/Makefile
+
+$(REFMAN)/Makefile:
+       cp -p $(MAKEFILE_DOCBOOK) $(REFMAN)/Makefile
+
+$(REFMANCOMMON):
+       $(WGET) $(WGETFLAGS) $(BASEURL)/$(REFMANCOMMON)
+
+$(COMMON):
+       $(WGET) $(WGETFLAGS) $(BASEURL)/$(COMMON)
+
+clean:
+       $(RM) -r $(REFMAN)
+       $(RM) -r $(REFMANCOMMON)
+       $(RM) -r $(COMMON)
+       $(RM) index.html
+       $(RM) robots.txt