Merge lp:~tplavcic/percona-xtrabackup/bug1156209-2.2 into lp:percona-xtrabackup/2.2

Proposed by Tomislav Plavcic
Status: Superseded
Proposed branch: lp:~tplavcic/percona-xtrabackup/bug1156209-2.2
Merge into: lp:percona-xtrabackup/2.2
Diff against target: 505 lines (+91/-317)
10 files modified
cmake/build_configurations/xtrabackup_release.cmake (+2/-0)
storage/innobase/xtrabackup/CMakeLists.txt (+1/-0)
storage/innobase/xtrabackup/doc/Makefile (+0/-143)
storage/innobase/xtrabackup/doc/make.bat (+0/-170)
storage/innobase/xtrabackup/doc/source/CMakeLists.txt (+75/-0)
storage/innobase/xtrabackup/utils/build-binary.sh (+1/-1)
storage/innobase/xtrabackup/utils/debian/control (+3/-1)
storage/innobase/xtrabackup/utils/debian/percona-xtrabackup.install (+1/-0)
storage/innobase/xtrabackup/utils/debian/rules (+1/-1)
storage/innobase/xtrabackup/utils/percona-xtrabackup.spec (+7/-1)
To merge this branch: bzr merge lp:~tplavcic/percona-xtrabackup/bug1156209-2.2
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Needs Fixing
Review via email: mp+246681@code.launchpad.net

This proposal has been superseded by a proposal from 2015-01-21.

Description of the change

Man pages were added before but they were not build and added into packages/tarball.
Changes were made to our build nodes to support sphinx-build and also made changes in cmake and packages to generate man pages on build and include them into packages.

Some testing is below:

---------------------
XtraBackup 2 .2 test:
---------------------

Debian Squeeze
--------------
Checked that man xtrabackup, man xbstream, man xbcrypt and man innobackupex actually show man pages when package installed.

Content of the package:
vagrant@t-debian6-64:~$ dpkg -c percona-xtrabackup_2.2.7-5061-1.squeeze_amd64.deb |grep man
drwxr-xr-x root/root 0 2015-01-16 08:31 ./usr/share/man/
drwxr-xr-x root/root 0 2015-01-16 08:31 ./usr/share/man/man1/
-rw-r--r-- root/root 20290 2015-01-16 08:31 ./usr/share/man/man1/xtrabackup.1.gz
-rw-r--r-- root/root 816 2015-01-16 08:31 ./usr/share/man/man1/xbcrypt.1.gz
-rw-r--r-- root/root 1229 2015-01-16 08:31 ./usr/share/man/man1/xbstream.1.gz
-rw-r--r-- root/root 24293 2015-01-16 08:31 ./usr/share/man/man1/innobackupex.1.gz

Ubuntu Trusty
-------------
Checked running man ... command on installed package - works fine.

Content of the package:
vagrant@t-ubuntu1404-64:~$ dpkg -c percona-xtrabackup_2.2.7-5061-1.trusty_amd64.deb |grep man
drwxr-xr-x root/root 0 2015-01-16 00:32 ./usr/share/man/
drwxr-xr-x root/root 0 2015-01-16 00:32 ./usr/share/man/man1/
-rw-r--r-- root/root 24488 2015-01-16 00:32 ./usr/share/man/man1/innobackupex.1.gz
-rw-r--r-- root/root 810 2015-01-16 00:32 ./usr/share/man/man1/xbcrypt.1.gz
-rw-r--r-- root/root 20416 2015-01-16 00:32 ./usr/share/man/man1/xtrabackup.1.gz
-rw-r--r-- root/root 1231 2015-01-16 00:32 ./usr/share/man/man1/xbstream.1.gz

Centos5
-------
Checked running man ... command on installed package.

Content of the package:
[vagrant@t-centos5-64 ~]$ rpm -qlp percona-xtrabackup-2.2.7-5061.el5.x86_64.rpm |grep man
/usr/share/man/man1/innobackupex.1.gz
/usr/share/man/man1/xbcrypt.1.gz
/usr/share/man/man1/xbstream.1.gz
/usr/share/man/man1/xtrabackup.1.gz

Centos7
-------
Checked running man ... command on installed package - works fine.

Content of the package:
[vagrant@localhost ~]$ rpm -qlp percona-xtrabackup-2.2.7-5061.el7.x86_64.rpm |grep man
/usr/share/man/man1/innobackupex.1.gz
/usr/share/man/man1/xbcrypt.1.gz
/usr/share/man/man1/xbstream.1.gz
/usr/share/man/man1/xtrabackup.1.gz

Tarball
-------
plavi@zoidberg:~/work$ tar -ztvf percona-xtrabackup-2.2.7-5061-Linux-x86_64.tar.gz |grep man
drwxr-xr-x root/root 0 2015-01-16 09:31 percona-xtrabackup-2.2.7-Linux-x86_64/man/
drwxr-xr-x root/root 0 2015-01-16 09:31 percona-xtrabackup-2.2.7-Linux-x86_64/man/man1/
-rw-r--r-- root/root 69420 2015-01-16 09:29 percona-xtrabackup-2.2.7-Linux-x86_64/man/man1/xtrabackup.1
-rw-r--r-- root/root 2084 2015-01-16 09:29 percona-xtrabackup-2.2.7-Linux-x86_64/man/man1/xbcrypt.1
-rw-r--r-- root/root 92762 2015-01-16 09:29 percona-xtrabackup-2.2.7-Linux-x86_64/man/man1/innobackupex.1
-rw-r--r-- root/root 2834 2015-01-16 09:29 percona-xtrabackup-2.2.7-Linux-x86_64/man/man1/xbstream.1

--------------------
XtraBackup 2.3 test:
--------------------
Debian Squeeze
--------------
Checked running man ... command on installed package - works fine.

Content of the package:
vagrant@t-debian6-64:~$ dpkg -c percona-xtrabackup-23_2.3.0-5062.alpha1-1.squeeze_amd64.deb |grep man
drwxr-xr-x root/root 0 2015-01-16 08:49 ./usr/share/man/
drwxr-xr-x root/root 0 2015-01-16 08:49 ./usr/share/man/man1/
-rw-r--r-- root/root 20291 2015-01-16 08:49 ./usr/share/man/man1/xtrabackup.1.gz
-rw-r--r-- root/root 817 2015-01-16 08:49 ./usr/share/man/man1/xbcrypt.1.gz
-rw-r--r-- root/root 1231 2015-01-16 08:49 ./usr/share/man/man1/xbstream.1.gz
-rw-r--r-- root/root 24293 2015-01-16 08:49 ./usr/share/man/man1/innobackupex.1.gz

Ubuntu Trusty
-------------
Checked running man ... command on installed package - works fine.

Content of the package:
vagrant@t-ubuntu1404-64:~$ dpkg -c percona-xtrabackup-23_2.3.0-5062.alpha1-1.trusty_amd64.deb |grep man
drwxr-xr-x root/root 0 2015-01-16 00:49 ./usr/share/man/
drwxr-xr-x root/root 0 2015-01-16 00:49 ./usr/share/man/man1/
-rw-r--r-- root/root 24488 2015-01-16 00:49 ./usr/share/man/man1/innobackupex.1.gz
-rw-r--r-- root/root 811 2015-01-16 00:49 ./usr/share/man/man1/xbcrypt.1.gz
-rw-r--r-- root/root 20415 2015-01-16 00:49 ./usr/share/man/man1/xtrabackup.1.gz
-rw-r--r-- root/root 1232 2015-01-16 00:49 ./usr/share/man/man1/xbstream.1.gz

Centos5
-------
Checked running man ... command on installed package - works fine.

Content of the package:
[vagrant@t-centos5-64 ~]$ rpm -qlp percona-xtrabackup-23-2.3.0-5062.alpha1.el5.x86_64.rpm |grep man
/usr/share/man/man1/innobackupex.1.gz
/usr/share/man/man1/xbcrypt.1.gz
/usr/share/man/man1/xbstream.1.gz
/usr/share/man/man1/xtrabackup.1.gz

Centos7
-------
Checked running man ... command on installed package - works fine.

Content of the package:
[vagrant@t-centos7-64 ~]$ rpm -qlp percona-xtrabackup-23-2.3.0-5062.alpha1.el7.x86_64.rpm |grep man
/usr/share/man/man1/innobackupex.1.gz
/usr/share/man/man1/xbcrypt.1.gz
/usr/share/man/man1/xbstream.1.gz
/usr/share/man/man1/xtrabackup.1.gz

Tarball
-------
plavi@zoidberg:~/work$ tar -ztvf percona-xtrabackup-2.3.0alpha1-5062-Linux-x86_64.tar.gz |grep man
drwxr-xr-x root/root 0 2015-01-16 09:49 percona-xtrabackup-2.3.0alpha1-Linux-x86_64/man/
drwxr-xr-x root/root 0 2015-01-16 09:49 percona-xtrabackup-2.3.0alpha1-Linux-x86_64/man/man1/
-rw-r--r-- root/root 69420 2015-01-16 09:47 percona-xtrabackup-2.3.0alpha1-Linux-x86_64/man/man1/xtrabackup.1
-rw-r--r-- root/root 2084 2015-01-16 09:47 percona-xtrabackup-2.3.0alpha1-Linux-x86_64/man/man1/xbcrypt.1
-rw-r--r-- root/root 92762 2015-01-16 09:47 percona-xtrabackup-2.3.0alpha1-Linux-x86_64/man/man1/innobackupex.1
-rw-r--r-- root/root 2834 2015-01-16 09:47 percona-xtrabackup-2.3.0alpha1-Linux-x86_64/man/man1/xbstream.1

To post a comment you must log in.
Revision history for this message
Tomislav Plavcic (tplavcic) wrote :

Test packages are available here:
http://jenkins.percona.com/view/Percona-RELEASES/job/percona-xtrabackup-2.2-RELEASE/46/
http://jenkins.percona.com/view/Percona-RELEASES/job/percona-xtrabackup-2.3-RELEASE/4/
nevermind the yellow build for 2.3 for centos5-32 it was some connection problem and it was successful when restarted.

Revision history for this message
Alexey Kopytov (akopytov) wrote :

General comments:

- shouldn't we remove doc/Makefile and doc/make.bat? That would also require re-imlementing the remaining bits from Makefile in doc/source/CMakeLists.txt. How much work would that require?

- please add a CMake configuration option (-DWITH_MAN_PAGES, ON by default) so that it would be possible to build xtrabackup without man pages on systems without sphinx installed.

review: Needs Fixing
Revision history for this message
Tomislav Plavcic (tplavcic) wrote :

Thanks Alexey, some good comments.
1. Will check with Hrvoje which building options he actually uses and what it would take to move them.
2. Will do.

Revision history for this message
Tomislav Plavcic (tplavcic) wrote :
Download full text (4.2 KiB)

Resubmitting MP - here are the changes:
Regarding #1:
I have removed Makefile and make.bat from doc and added into cmake builds for html, latex and pdf - checked with Hrvoje and it seems that are the ones we use. Also changed jenkins documentation jobs to reflect new changes.

Regarding #2: Added option -DWITH_MAN_PAGES which is turned on by default. Also new options which are turned off by default are -DWITH_HTML_DOCS, -DWITH_LATEX_DOCS and -DWITH_PDF_DOCS and those are currently used by new jenkins documentation jobs.

Here's some testing:
PXB 2.2:
--------
TEST PACKAGES:
http://jenkins.percona.com/view/Percona-RELEASES/job/percona-xtrabackup-2.2-RELEASE/47/

RPM:
plavi@zoidberg:pxb $ rpm -qlp percona-xtrabackup-2.2.7-5061.el6.x86_64.rpm|grep man
/usr/share/man/man1/innobackupex.1.gz
/usr/share/man/man1/xbcrypt.1.gz
/usr/share/man/man1/xbstream.1.gz
/usr/share/man/man1/xtrabackup.1.gz

DEB:
plavi@zoidberg:pxb $ dpkg -c percona-xtrabackup_2.2.7-5061-1.trusty_amd64.deb|grep man
drwxr-xr-x root/root 0 2015-01-20 17:11 ./usr/share/man/
drwxr-xr-x root/root 0 2015-01-20 17:11 ./usr/share/man/man1/
-rw-r--r-- root/root 24486 2015-01-20 17:11 ./usr/share/man/man1/innobackupex.1.gz
-rw-r--r-- root/root 808 2015-01-20 17:11 ./usr/share/man/man1/xbcrypt.1.gz
-rw-r--r-- root/root 20415 2015-01-20 17:11 ./usr/share/man/man1/xtrabackup.1.gz
-rw-r--r-- root/root 1230 2015-01-20 17:11 ./usr/share/man/man1/xbstream.1.gz

TAR:
plavi@zoidberg:pxb $ tar -ztvf percona-xtrabackup-2.2.7-5061-Linux-x86_64.tar.gz|grep man
drwxr-xr-x root/root 0 2015-01-20 17:09 percona-xtrabackup-2.2.7-Linux-x86_64/man/
drwxr-xr-x root/root 0 2015-01-20 17:09 percona-xtrabackup-2.2.7-Linux-x86_64/man/man1/
-rw-r--r-- root/root 69420 2015-01-20 17:07 percona-xtrabackup-2.2.7-Linux-x86_64/man/man1/xtrabackup.1
-rw-r--r-- root/root 2084 2015-01-20 17:07 percona-xtrabackup-2.2.7-Linux-x86_64/man/man1/xbcrypt.1
-rw-r--r-- root/root 92762 2015-01-20 17:07 percona-xtrabackup-2.2.7-Linux-x86_64/man/man1/innobackupex.1
-rw-r--r-- root/root 2834 2015-01-20 17:07 percona-xtrabackup-2.2.7-Linux-x86_64/man/man1/xbstream.1

JENKINS DOCUMENTATION JOBS:
http://jenkins.percona.com/view/PXB%202.2/job/percona-xtrabackup-2.2-documentation-pdf-new/3/
http://jenkins.percona.com/view/PXB%202.2/job/percona-xtrabackup-2.2-documentation-new/1/

PXB 2.3:
--------
TEST PACKAGES:
http://jenkins.percona.com/view/Percona-RELEASES/job/percona-xtrabackup-2.3-RELEASE/6/

RPM:
plavi@zoidberg:pxb $ rpm -qlp percona-xtrabackup-23-2.3.0-5062.alpha1.el7.x86_64.rpm |grep man
/usr/share/man/man1/innobackupex.1.gz
/usr/share/man/man1/xbcrypt.1.gz
/usr/share/man/man1/xbstream.1.gz
/usr/share/man/man1/xtrabackup.1.gz

DEB:
plavi@zoidberg:pxb $ dpkg -c percona-xtrabackup-23_2.3.0-5062.alpha1-1.trusty_amd64.deb|grep man
drwxr-xr-x root/root 0 2015-01-21 09:23 ./usr/share/man/
drwxr-xr-x root/root 0 2015-01-21 09:23 ./usr/share/man/man1/
-rw-r--r-- root/root 24487 2015-01-21 09:23 ./usr/share/man/man1/innobackupex.1.gz
-rw-r--r-- root/root 811 2015-01-21 09:23 ./usr/share/man/man1/xbcrypt.1.gz
-rw-r--r-- root/root 20415 2015-01-...

Read more...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cmake/build_configurations/xtrabackup_release.cmake'
2--- cmake/build_configurations/xtrabackup_release.cmake 2014-09-14 04:53:30 +0000
3+++ cmake/build_configurations/xtrabackup_release.cmake 2015-01-20 18:10:07 +0000
4@@ -52,6 +52,8 @@
5
6 # Enable fast mutexes on Linux
7 OPTION(WITH_FAST_MUTEXES "" ON)
8+ # Enable building man pages on Linux by default
9+ OPTION(WITH_MAN_PAGES "" ON)
10 ENDIF()
11
12 ENDIF()
13
14=== modified file 'storage/innobase/xtrabackup/CMakeLists.txt'
15--- storage/innobase/xtrabackup/CMakeLists.txt 2014-05-19 12:26:12 +0000
16+++ storage/innobase/xtrabackup/CMakeLists.txt 2015-01-20 18:10:07 +0000
17@@ -25,3 +25,4 @@
18
19 ADD_SUBDIRECTORY(src)
20 ADD_SUBDIRECTORY(test)
21+ADD_SUBDIRECTORY(doc/source)
22
23=== removed file 'storage/innobase/xtrabackup/doc/Makefile'
24--- storage/innobase/xtrabackup/doc/Makefile 2014-03-26 07:39:36 +0000
25+++ storage/innobase/xtrabackup/doc/Makefile 1970-01-01 00:00:00 +0000
26@@ -1,143 +0,0 @@
27-# Makefile for Sphinx documentation
28-#
29-
30-# You can set these variables from the command line.
31-SPHINXOPTS =
32-SPHINXBUILD = sphinx-build
33-PAPER =
34-BUILDDIR = build
35-
36-# Internal variables.
37-PAPEROPT_a4 = -D latex_paper_size=a4
38-PAPEROPT_letter = -D latex_paper_size=letter
39-ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
40-
41-.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
42-
43-help:
44- @echo "Please use \`make <target>' where <target> is one of"
45- @echo " html to make standalone HTML files"
46- @echo " dirhtml to make HTML files named index.html in directories"
47- @echo " singlehtml to make a single large HTML file"
48- @echo " pickle to make pickle files"
49- @echo " json to make JSON files"
50- @echo " htmlhelp to make HTML files and a HTML help project"
51- @echo " qthelp to make HTML files and a qthelp project"
52- @echo " devhelp to make HTML files and a Devhelp project"
53- @echo " epub to make an epub"
54- @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
55- @echo " latexpdf to make LaTeX files and run them through pdflatex"
56- @echo " text to make text files"
57- @echo " man to make manual pages"
58- @echo " changes to make an overview of all changed/added/deprecated items"
59- @echo " linkcheck to check all external links for integrity"
60- @echo " doctest to run all doctests embedded in the documentation (if enabled)"
61-
62-clean:
63- -rm -rf $(BUILDDIR)/*
64-
65-html:
66- @echo "Downloading percona-theme ..."
67- @wget -O percona-theme.tar.gz http://percona.com/docs/theme/percona-xtrabackup/2.2
68- @echo "Extracting theme."
69- @tar -zxf percona-theme.tar.gz
70- @rm -rf source/percona-theme
71- @mv percona-theme source/percona-theme
72- @rm percona-theme.tar.gz
73- @echo "Building html doc"
74- $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
75- @echo
76- @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
77-
78-offhtml:
79- $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
80- @echo
81- @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
82-
83-dirhtml:
84- $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
85- @echo
86- @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
87-
88-singlehtml:
89- $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
90- @echo
91- @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
92-
93-pickle:
94- $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
95- @echo
96- @echo "Build finished; now you can process the pickle files."
97-
98-json:
99- $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
100- @echo
101- @echo "Build finished; now you can process the JSON files."
102-
103-htmlhelp:
104- $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
105- @echo
106- @echo "Build finished; now you can run HTML Help Workshop with the" \
107- ".hhp project file in $(BUILDDIR)/htmlhelp."
108-
109-qthelp:
110- $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
111- @echo
112- @echo "Build finished; now you can run "qcollectiongenerator" with the" \
113- ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
114- @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/PerconaXtraBackup.qhcp"
115- @echo "To view the help file:"
116- @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/PerconaXtraBackup.qhc"
117-
118-devhelp:
119- $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
120- @echo
121- @echo "Build finished."
122- @echo "To view the help file:"
123- @echo "# mkdir -p $$HOME/.local/share/devhelp/PerconaXtraBackup"
124- @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/PerconaXtraBackup"
125- @echo "# devhelp"
126-
127-epub:
128- $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
129- @echo
130- @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
131-
132-latex:
133- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
134- @echo
135- @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
136- @echo "Run \`make' in that directory to run these through (pdf)latex" \
137- "(use \`make latexpdf' here to do that automatically)."
138-
139-latexpdf:
140- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
141- @echo "Running LaTeX files through pdflatex..."
142- make -C $(BUILDDIR)/latex all-pdf
143- @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
144-
145-text:
146- $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
147- @echo
148- @echo "Build finished. The text files are in $(BUILDDIR)/text."
149-
150-man:
151- $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
152- @echo
153- @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
154-
155-changes:
156- $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
157- @echo
158- @echo "The overview file is in $(BUILDDIR)/changes."
159-
160-linkcheck:
161- $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
162- @echo
163- @echo "Link check complete; look for any errors in the above output " \
164- "or in $(BUILDDIR)/linkcheck/output.txt."
165-
166-doctest:
167- $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
168- @echo "Testing of doctests in the sources finished, look at the " \
169- "results in $(BUILDDIR)/doctest/output.txt."
170
171=== removed file 'storage/innobase/xtrabackup/doc/make.bat'
172--- storage/innobase/xtrabackup/doc/make.bat 2011-07-07 05:32:50 +0000
173+++ storage/innobase/xtrabackup/doc/make.bat 1970-01-01 00:00:00 +0000
174@@ -1,170 +0,0 @@
175-@ECHO OFF
176-
177-REM Command file for Sphinx documentation
178-
179-if "%SPHINXBUILD%" == "" (
180- set SPHINXBUILD=sphinx-build
181-)
182-set BUILDDIR=build
183-set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
184-if NOT "%PAPER%" == "" (
185- set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
186-)
187-
188-if "%1" == "" goto help
189-
190-if "%1" == "help" (
191- :help
192- echo.Please use `make ^<target^>` where ^<target^> is one of
193- echo. html to make standalone HTML files
194- echo. dirhtml to make HTML files named index.html in directories
195- echo. singlehtml to make a single large HTML file
196- echo. pickle to make pickle files
197- echo. json to make JSON files
198- echo. htmlhelp to make HTML files and a HTML help project
199- echo. qthelp to make HTML files and a qthelp project
200- echo. devhelp to make HTML files and a Devhelp project
201- echo. epub to make an epub
202- echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
203- echo. text to make text files
204- echo. man to make manual pages
205- echo. changes to make an overview over all changed/added/deprecated items
206- echo. linkcheck to check all external links for integrity
207- echo. doctest to run all doctests embedded in the documentation if enabled
208- goto end
209-)
210-
211-if "%1" == "clean" (
212- for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
213- del /q /s %BUILDDIR%\*
214- goto end
215-)
216-
217-if "%1" == "html" (
218- %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
219- if errorlevel 1 exit /b 1
220- echo.
221- echo.Build finished. The HTML pages are in %BUILDDIR%/html.
222- goto end
223-)
224-
225-if "%1" == "dirhtml" (
226- %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
227- if errorlevel 1 exit /b 1
228- echo.
229- echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
230- goto end
231-)
232-
233-if "%1" == "singlehtml" (
234- %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
235- if errorlevel 1 exit /b 1
236- echo.
237- echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
238- goto end
239-)
240-
241-if "%1" == "pickle" (
242- %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
243- if errorlevel 1 exit /b 1
244- echo.
245- echo.Build finished; now you can process the pickle files.
246- goto end
247-)
248-
249-if "%1" == "json" (
250- %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
251- if errorlevel 1 exit /b 1
252- echo.
253- echo.Build finished; now you can process the JSON files.
254- goto end
255-)
256-
257-if "%1" == "htmlhelp" (
258- %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
259- if errorlevel 1 exit /b 1
260- echo.
261- echo.Build finished; now you can run HTML Help Workshop with the ^
262-.hhp project file in %BUILDDIR%/htmlhelp.
263- goto end
264-)
265-
266-if "%1" == "qthelp" (
267- %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
268- if errorlevel 1 exit /b 1
269- echo.
270- echo.Build finished; now you can run "qcollectiongenerator" with the ^
271-.qhcp project file in %BUILDDIR%/qthelp, like this:
272- echo.^> qcollectiongenerator %BUILDDIR%\qthelp\PerconaXtraBackup.qhcp
273- echo.To view the help file:
274- echo.^> assistant -collectionFile %BUILDDIR%\qthelp\PerconaXtraBackup.ghc
275- goto end
276-)
277-
278-if "%1" == "devhelp" (
279- %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
280- if errorlevel 1 exit /b 1
281- echo.
282- echo.Build finished.
283- goto end
284-)
285-
286-if "%1" == "epub" (
287- %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
288- if errorlevel 1 exit /b 1
289- echo.
290- echo.Build finished. The epub file is in %BUILDDIR%/epub.
291- goto end
292-)
293-
294-if "%1" == "latex" (
295- %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
296- if errorlevel 1 exit /b 1
297- echo.
298- echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
299- goto end
300-)
301-
302-if "%1" == "text" (
303- %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
304- if errorlevel 1 exit /b 1
305- echo.
306- echo.Build finished. The text files are in %BUILDDIR%/text.
307- goto end
308-)
309-
310-if "%1" == "man" (
311- %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
312- if errorlevel 1 exit /b 1
313- echo.
314- echo.Build finished. The manual pages are in %BUILDDIR%/man.
315- goto end
316-)
317-
318-if "%1" == "changes" (
319- %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
320- if errorlevel 1 exit /b 1
321- echo.
322- echo.The overview file is in %BUILDDIR%/changes.
323- goto end
324-)
325-
326-if "%1" == "linkcheck" (
327- %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
328- if errorlevel 1 exit /b 1
329- echo.
330- echo.Link check complete; look for any errors in the above output ^
331-or in %BUILDDIR%/linkcheck/output.txt.
332- goto end
333-)
334-
335-if "%1" == "doctest" (
336- %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
337- if errorlevel 1 exit /b 1
338- echo.
339- echo.Testing of doctests in the sources finished, look at the ^
340-results in %BUILDDIR%/doctest/output.txt.
341- goto end
342-)
343-
344-:end
345
346=== added file 'storage/innobase/xtrabackup/doc/source/CMakeLists.txt'
347--- storage/innobase/xtrabackup/doc/source/CMakeLists.txt 1970-01-01 00:00:00 +0000
348+++ storage/innobase/xtrabackup/doc/source/CMakeLists.txt 2015-01-20 18:10:07 +0000
349@@ -0,0 +1,75 @@
350+# Copyright (c) 2013 Percona LLC and/or its affiliates.
351+#
352+# This program is free software; you can redistribute it and/or modify
353+# it under the terms of the GNU General Public License as published by
354+# the Free Software Foundation; version 2 of the License.
355+
356+# This program is distributed in the hope that it will be useful,
357+# but WITHOUT ANY WARRANTY; without even the implied warranty of
358+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
359+# GNU General Public License for more details.
360+
361+# You should have received a copy of the GNU General Public License
362+# along with this program; if not, write to the Free Software
363+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
364+
365+# generate man pages
366+IF(WITH_MAN_PAGES)
367+ ADD_CUSTOM_COMMAND(
368+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/build/man
369+ COMMAND sphinx-build -b man -d build/doctrees . build/man
370+ VERBATIM
371+ )
372+
373+ ADD_CUSTOM_TARGET(man ALL
374+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/build/man
375+ )
376+
377+ INSTALL(
378+ CODE "FILE( GLOB MAN1_FILES \"${CMAKE_CURRENT_BINARY_DIR}/build/man/*.1\" )"
379+ CODE "FILE( INSTALL \${MAN1_FILES} DESTINATION \"${INSTALL_MANDIR}/man1\" )"
380+ )
381+ENDIF()
382+
383+# generate html documentation
384+IF(WITH_HTML_DOCS)
385+ ADD_CUSTOM_COMMAND(
386+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/build/html
387+ COMMAND wget -O percona-theme.tar.gz http://percona.com/docs/theme/percona-xtrabackup/2.2
388+ COMMAND tar -zxf percona-theme.tar.gz
389+ COMMAND rm -f percona-theme.tar.gz
390+ COMMAND sphinx-build -b html -d build/doctrees . build/html
391+ VERBATIM
392+ )
393+
394+ ADD_CUSTOM_TARGET(html ALL
395+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/build/html
396+ )
397+ENDIF()
398+
399+# generate latex or pdf documentation
400+IF(WITH_LATEX_DOCS OR WITH_PDF_DOCS)
401+ ADD_CUSTOM_COMMAND(
402+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/build/latex
403+ COMMAND sphinx-build -b latex -d build/doctrees . build/latex
404+ VERBATIM
405+ )
406+
407+ ADD_CUSTOM_TARGET(latex ALL
408+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/build/latex
409+ )
410+
411+ IF(WITH_PDF_DOCS)
412+ ADD_CUSTOM_COMMAND(
413+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/build/latex/PerconaXtraBackup-2.2.pdf
414+ COMMAND make -C build/latex all-pdf
415+ VERBATIM
416+ )
417+
418+ ADD_CUSTOM_TARGET(latexpdf ALL
419+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/build/latex
420+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/build/latex/PerconaXtraBackup-2.2.pdf
421+ )
422+ ENDIF()
423+
424+ENDIF()
425
426=== modified file 'storage/innobase/xtrabackup/utils/build-binary.sh'
427--- storage/innobase/xtrabackup/utils/build-binary.sh 2014-03-28 10:35:52 +0000
428+++ storage/innobase/xtrabackup/utils/build-binary.sh 2015-01-20 18:10:07 +0000
429@@ -110,7 +110,7 @@
430 # Install the files
431 mkdir -p "$INSTALLDIR"
432 cmake -DBUILD_CONFIG=xtrabackup_release -DCMAKE_INSTALL_PREFIX="$INSTALLDIR" \
433- -DINSTALL_MYSQLTESTDIR=percona-xtrabackup-${XB_VERSION_MAJOR}.${XB_VERSION_MINOR}-test .
434+ -DINSTALL_MYSQLTESTDIR=percona-xtrabackup-${XB_VERSION_MAJOR}.${XB_VERSION_MINOR}-test -DINSTALL_MANDIR=${INSTALLDIR}/man .
435 make $MAKE_JFLAG
436 make install
437
438
439=== modified file 'storage/innobase/xtrabackup/utils/debian/control'
440--- storage/innobase/xtrabackup/utils/debian/control 2014-08-22 10:40:29 +0000
441+++ storage/innobase/xtrabackup/utils/debian/control 2015-01-20 18:10:07 +0000
442@@ -14,7 +14,9 @@
443 libtool,
444 libz-dev,
445 libgcrypt-dev,
446- lsb-release
447+ lsb-release,
448+ python-sphinx (>= 1.0.1),
449+ python-docutils (>= 0.6)
450 Standards-Version: 3.9.5
451 Homepage: http://www.percona.com/software/percona-xtrabackup
452
453
454=== modified file 'storage/innobase/xtrabackup/utils/debian/percona-xtrabackup.install'
455--- storage/innobase/xtrabackup/utils/debian/percona-xtrabackup.install 2014-06-10 11:24:27 +0000
456+++ storage/innobase/xtrabackup/utils/debian/percona-xtrabackup.install 2015-01-20 18:10:07 +0000
457@@ -1,1 +1,2 @@
458 /usr/bin
459+/usr/share/man/man1
460
461=== modified file 'storage/innobase/xtrabackup/utils/debian/rules'
462--- storage/innobase/xtrabackup/utils/debian/rules 2014-07-22 12:46:09 +0000
463+++ storage/innobase/xtrabackup/utils/debian/rules 2015-01-20 18:10:07 +0000
464@@ -19,7 +19,7 @@
465
466 ifeq "$(DEB_DUMMY)" ""
467 cmake -DBUILD_CONFIG=xtrabackup_release -DCMAKE_INSTALL_PREFIX=/usr \
468- -DINSTALL_MYSQLTESTDIR=/usr/share/percona-xtrabackup-test .
469+ -DINSTALL_MYSQLTESTDIR=/usr/share/percona-xtrabackup-test -DINSTALL_MANDIR=/usr/share/man .
470 else
471 # Dummy binaries that avoid compilation
472 echo 'main() { return 300; }' | gcc -x c - -o xtrabackup
473
474=== modified file 'storage/innobase/xtrabackup/utils/percona-xtrabackup.spec'
475--- storage/innobase/xtrabackup/utils/percona-xtrabackup.spec 2015-01-12 09:58:23 +0000
476+++ storage/innobase/xtrabackup/utils/percona-xtrabackup.spec 2015-01-20 18:10:07 +0000
477@@ -17,6 +17,11 @@
478 Source: percona-xtrabackup-%{version}%{xb_version_extra}.tar.gz
479
480 BuildRequires: cmake, libaio-devel, libgcrypt-devel, ncurses-devel, readline-devel, zlib-devel
481+%if 0%{?rhel} > 6
482+BuildRequires: python-sphinx >= 1.0.1, python-docutils >= 0.6
483+%else
484+BuildRequires: python-sphinx10 >= 1.0.1, python-docutils >= 0.6
485+%endif
486 Requires: perl(DBD::mysql), rsync
487 BuildRoot: %{_tmppath}/%{name}-%{version}-root
488
489@@ -54,7 +59,7 @@
490 export CXXFLAGS="$CXXFLAGS -DXTRABACKUP_VERSION=\\\"%{xtrabackup_version}\\\" -DXTRABACKUP_REVISION=\\\"%{xtrabackup_revision}\\\""
491 #
492 cmake -DBUILD_CONFIG=xtrabackup_release -DCMAKE_INSTALL_PREFIX=%{_prefix} \
493- -DINSTALL_MYSQLTESTDIR=%{_datadir}/percona-xtrabackup-test .
494+ -DINSTALL_MYSQLTESTDIR=%{_datadir}/percona-xtrabackup-test -DINSTALL_MANDIR=%{_mandir} .
495 #
496 make %{?_smp_mflags}
497 #
498@@ -74,6 +79,7 @@
499 %{_bindir}/xbstream
500 %{_bindir}/xbcrypt
501 %doc COPYING
502+%doc %{_mandir}/man1/*.1.gz
503
504 %files -n percona-xtrabackup-test
505 %defattr(-,root,root,-)

Subscribers

People subscribed via source and target branches