[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 16:24:54 +0000 (UTC)
commit f5dd1fb5a932d38234c88a710600316c322a5841
Author: Jacob Boerema <jgboerema gmail com>
Date: Sat Feb 19 10:00:56 2022 -0500
WIP: Test quickreference pdf creation
.gitlab-ci.yml | 5 +++++
quickreference/Makefile.am | 17 ++++++++++++++++-
2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d5e1ee706..4de990ca1 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,17 @@ build-debian:
- apt-get install -y --no-install-recommends
automake
build-essential
+ dblatex
docbook-website
docbook-xml
docbook-xsl
+ gettext
pkg-config
pngcrush
pngnq
python3
python3-libxml2
+ texlive-xetex
xsltproc
script:
- mkdir _build
@@ -35,6 +39,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..de89476e7 100644
--- a/quickreference/Makefile.am
+++ b/quickreference/Makefile.am
@@ -66,6 +66,20 @@ 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=$(top_srcdir)/stylesheets/plainprint.xsl \
+ --output=$@
+
+pdf: $(foreach lang,$(QUICKREFERENCE_LINGUAS),pdf/gimp-keys-$(lang).pdf)
+
+endif
+
docbook/gimp-keys-%.xml: xml/gimp-keys-%.xml stylesheets/keys-docbook.xsl
$(MKDIR_P) docbook
$(XSLTPROC) \
@@ -75,11 +89,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]