[Debian-ha-commits] [pacemaker] 27/69: Use the clusterlabs Publican brand for building the books
Christoph Berg
myon at debian.org
Tue Jan 26 09:14:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
myon pushed a commit to branch debian/master
in repository pacemaker.
commit 37524ee0fcabc7499b26915515c3f4bc5675cd38
Author: Ferenc Wágner <wferi at niif.hu>
Date: Sun Dec 13 18:56:09 2015 +0100
Use the clusterlabs Publican brand for building the books
It's possible to use the in-tree "clusterlabs" brand for building the books
without installing the brand, which requires root access and has permanent
effect on the system. This patch achieves this without changing the source,
thus the web versions shouldn't be affected, but the price is using the
../xsl symlink a directory level higher than the Makefile, which might be
considered unexpected.
Signed-off-by: Ferenc Wágner <wferi at niif.hu>
---
.gitignore | 1 +
doc/Makefile.am | 18 +++++++++++-------
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/.gitignore b/.gitignore
index 966bc6e..af4ebe6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -163,6 +163,7 @@ compat_reports
.ABI-build
abi_dumps
logs
+xsl
*.patch
*.diff
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 46d4451..3077276 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -73,6 +73,10 @@ EXTRA_DIST = $(docbook:%=%.xml)
%.html: %.txt
$(AM_V_ASCII)$(ASCIIDOC) --unsafe --backend=xhtml11 $<
+# publican-clusterlabs/xsl/html-single.xsl imports that of Publican
+# through this link during the build
+../xsl:
+ ln -s /usr/share/publican/xsl "$@"
SHARED_TXT=$(wildcard shared/en-US/*.txt)
SHARED_XML=$(SHARED_TXT:%.txt=%.xml)
@@ -87,10 +91,10 @@ $(CFS_XML): $(CFS_SHARED_XML)
# We have to hardcode the book name
# With '%' the test for 'newness' fails
-Clusters_from_Scratch.build: $(PNGS) $(wildcard Clusters_from_Scratch/en-US/*.xml) $(CFS_XML) $(CFS_SHARED_XML)
+Clusters_from_Scratch.build: $(PNGS) $(wildcard Clusters_from_Scratch/en-US/*.xml) $(CFS_XML) $(CFS_SHARED_XML) ../xsl
$(PCMK_V) @echo Building $(@:%.build=%) because of $?
rm -rf $(@:%.build=%)/publish/*
- $(AM_V_PUB)cd $(@:%.build=%) && RPM_BUILD_DIR="" $(PUBLICAN) build --publish --langs=$(DOCBOOK_LANGS) --formats=$(DOCBOOK_FORMATS) $(PCMK_quiet)
+ $(AM_V_PUB)cd $(@:%.build=%) && RPM_BUILD_DIR="" $(PUBLICAN) build --publish --langs=$(DOCBOOK_LANGS) --formats=$(DOCBOOK_FORMATS) $(PCMK_quiet) --brand_dir=../publican-clusterlabs
rm -rf $(@:%.build=%)/tmp
touch $@
@@ -104,10 +108,10 @@ $(PE_XML): $(PE_SHARED_XML)
# We have to hardcode the book name
# With '%' the test for 'newness' fails
-Pacemaker_Explained.build: $(PNGS) $(wildcard Pacemaker_Explained/en-US/*.xml) $(PE_XML) $(PE_SHARED_XML)
+Pacemaker_Explained.build: $(PNGS) $(wildcard Pacemaker_Explained/en-US/*.xml) $(PE_XML) $(PE_SHARED_XML) ../xsl
$(PCMK_V) @echo Building $(@:%.build=%) because of $?
rm -rf $(@:%.build=%)/publish/*
- $(AM_V_PUB)cd $(@:%.build=%) && RPM_BUILD_DIR="" $(PUBLICAN) build --publish --langs=$(DOCBOOK_LANGS) --formats=$(DOCBOOK_FORMATS) $(PCMK_quiet)
+ $(AM_V_PUB)cd $(@:%.build=%) && RPM_BUILD_DIR="" $(PUBLICAN) build --publish --langs=$(DOCBOOK_LANGS) --formats=$(DOCBOOK_FORMATS) $(PCMK_quiet) --brand_dir=../publican-clusterlabs
rm -rf $(@:%.build=%)/tmp
touch $@
@@ -117,10 +121,10 @@ PR_XML=$(PR_TXT:%.txt=%.xml)
# We have to hardcode the book name
# With '%' the test for 'newness' fails
-Pacemaker_Remote.build: $(PNGS) $(wildcard Pacemaker_Remote/en-US/*.xml) $(PR_XML)
+Pacemaker_Remote.build: $(PNGS) $(wildcard Pacemaker_Remote/en-US/*.xml) $(PR_XML) ../xsl
$(PCMK_V) @echo Building $(@:%.build=%) because of $?
rm -rf $(@:%.build=%)/publish/*
- $(AM_V_PUB)cd $(@:%.build=%) && RPM_BUILD_DIR="" $(PUBLICAN) build --publish --langs=$(DOCBOOK_LANGS) --formats=$(DOCBOOK_FORMATS) $(PCMK_quiet)
+ $(AM_V_PUB)cd $(@:%.build=%) && RPM_BUILD_DIR="" $(PUBLICAN) build --publish --langs=$(DOCBOOK_LANGS) --formats=$(DOCBOOK_FORMATS) $(PCMK_quiet) --brand_dir=../publican-clusterlabs
rm -rf $(@:%.build=%)/tmp
touch $@
@@ -196,6 +200,6 @@ if BUILD_DOCBOOK
endif
clean-local:
- -rm -rf $(generated_docs) $(generated_mans) $(docbook_build)
+ -rm -rf $(generated_docs) $(generated_mans) $(docbook_build) ../xsl
-rm -rf $(SHARED_XML) $(CFS_XML) $(PE_XML) $(PR_XML)
for book in $(docbook); do rm -rf $$book/tmp $$book/publish; done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/pacemaker.git
More information about the Debian-HA-Commits
mailing list