[gimp-help/wip/wormnest/quickreference-pdf] WIP: Test quickreference pdf creation
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-help/wip/wormnest/quickreference-pdf] WIP: Test quickreference pdf creation
- Date: Sat, 19 Feb 2022 21:53:22 +0000 (UTC)
commit 0887a73bf317f9be68f1c7257ca266845d75751c
Author: Jacob Boerema <jgboerema gmail com>
Date: Sat Feb 19 10:00:56 2022 -0500
WIP: Test quickreference pdf creation
.gitlab-ci.yml | 8 ++++++++
quickreference/Makefile.am | 28 +++++++++++++++++++++++++++-
2 files changed, 35 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d5e1ee706..6f5e113e5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,6 +6,7 @@ stages:
variables:
INSTALL_DIR: "_install"
INSTALL_PREFIX: "${CI_PROJECT_DIR}/${INSTALL_DIR}"
+ LINGUAS: "en"
build-debian:
stage: build
@@ -20,14 +21,20 @@ build-debian:
- apt-get install -y --no-install-recommends
automake
build-essential
+ dblatex
docbook-website
docbook-xml
docbook-xsl
+ fonts-freefont-otf
+ gettext
pkg-config
pngcrush
pngnq
python3
python3-libxml2
+ texlive-fonts-recommended
+ texlive-lang-all
+ texlive-xetex
xsltproc
script:
- mkdir _build
@@ -35,6 +42,7 @@ build-debian:
- ../autogen.sh --prefix=${INSTALL_PREFIX} --without-gimp
- make && make install
- mv ${INSTALL_PREFIX}/share/gimp/2.0/help/ ../www/
+ - mv _build/quickreference/pdf/ ../www/
- cd ../web
- make
- mv html/ ../html/
diff --git a/quickreference/Makefile.am b/quickreference/Makefile.am
index fbd04ef43..d29750147 100644
--- a/quickreference/Makefile.am
+++ b/quickreference/Makefile.am
@@ -66,6 +66,31 @@ svg/gimp-keys-%.svg: xml/gimp-keys-%.xml stylesheets/keys-svg.xsl
svg: $(foreach lang,$(QUICKREFERENCE_LINGUAS),svg/gimp-keys-$(lang).svg)
+if HAVE_DBLATEX
+
+pdf/gimp-keys-%.pdf: xml/gimp-keys-%.xml stylesheets/keys-docbook.xsl
+ @if test -f pdf/%.pdf; then rm -f pdf/%.pdf; fi
+ $(MKDIR_P) pdf
+ @echo "*** Making Quickreference PDF ($*) ..."
+ $(DBLATEX) $(DBLATEXFLAGS) $(DBLATEXEXTRAFLAGS) \
+ --xsl-user=$(srcdir)/stylesheets/keys-docbook.xsl \
+ --output=$@ $<
+
+pdf: $(foreach lang,$(QUICKREFERENCE_LINGUAS),pdf/gimp-keys-$(lang).pdf)
+
+install-data-local:
+ $(MKDIR_P) $(DESTDIR)$(helpdir) || exit 77
+ @echo "*** Installing PDF:"
+ cd html && \
+ for lang in $(QUICKREFERENCE_LINGUAS); do \
+ @echo " $${lang}"; \
+ tar -chf- $${lang} | \
+ (cd $(DESTDIR)$(helpdir)/ && tar -xf-) || exit 70; \
+ done; \
+ echo .
+
+endif
+
docbook/gimp-keys-%.xml: xml/gimp-keys-%.xml stylesheets/keys-docbook.xsl
$(MKDIR_P) docbook
$(XSLTPROC) \
@@ -75,11 +100,12 @@ docbook/gimp-keys-%.xml: xml/gimp-keys-%.xml stylesheets/keys-docbook.xsl
docbook: $(foreach lang,$(QUICKREFERENCE_LINGUAS),docbook/gimp-keys-$(lang).xml)
-all-local: svg docbook
+all-local: svg pdf docbook
clean-local:
rm -rf docbook
rm -rf svg
+ rm -rf pdf
rm -rf xml
rm -f .xml2po.mo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]