summaryrefslogtreecommitdiffstats
path: root/po4a/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:39:23 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:39:23 +0000
commite3b16b3856bdd5c1645f4609d61bf5a16c026930 (patch)
treed9def3b6f6f46b166fc6f516775350fedeefbef6 /po4a/Makefile
parentInitial commit. (diff)
downloaddevscripts-upstream.tar.xz
devscripts-upstream.zip
Adding upstream version 2.19.5+deb10u1.upstream/2.19.5+deb10u1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--po4a/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/po4a/Makefile b/po4a/Makefile
new file mode 100644
index 0000000..e2b1258
--- /dev/null
+++ b/po4a/Makefile
@@ -0,0 +1,47 @@
+include ../Makefile.common
+GEN_TR_MAN1S := $(patsubst %.1,fr/%.fr.1,$(GEN_MAN1S))
+GEN_TR_MAN1S += $(patsubst %.1,de/%.de.1,$(GEN_MAN1S))
+
+all: translate
+# GEN_TR_MAN1S needs translate finished, serialize the calls
+ @$(MAKE) -C . transform
+transform: $(GEN_TR_MAN1S)
+
+translate: ../doc/devscripts.1
+ po4a --previous --no-backups --keep=0 devscripts-po4a.conf
+ touch translate
+
+clean: ../doc/devscripts.1
+ po4a --previous --rm-translations --no-backups devscripts-po4a.conf
+ rm -f $(GEN_TR_MAN1S) translate
+ rm -rf de fr
+
+../doc/devscripts.1:
+ # po4a translate and clean need ../doc/devscripts.1, rebuild it
+ $(MAKE) -C ../doc devscripts.1
+
+de/%.de.1: de/%.de.pl translate
+ podchecker $<
+ pod2man --utf8 --center=" " --release="Debian-Hilfswerkzeuge" $< > $@
+de/%.de.1: de/%.de.pod translate
+ podchecker $<
+ pod2man --utf8 --center=" " --release="Debian-Hilfswerkzeuge" $< > $@
+de/%.de.1: de/%.de.dbk translate
+ xsltproc --nonet -o $@ \
+ /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $<
+# xsltproc writes out to foo.1 even if you tell it to do otherwise, so we have
+# to rename the file after it's generated
+ mv de/$*.1 $@
+
+fr/%.fr.1: fr/%.fr.pl translate
+ podchecker $<
+ pod2man --utf8 --center=" " --release="Utilitaires Debian" $< > $@
+fr/%.fr.1: fr/%.fr.pod translate
+ podchecker $<
+ pod2man --utf8 --center=" " --release="Utilitaires Debian" $< > $@
+fr/%.fr.1: fr/%.fr.dbk translate
+ xsltproc --nonet -o $@ \
+ /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $<
+# xsltproc writes out to foo.1 even if you tell it to do otherwise, so we have
+# to rename the file after it's generated
+ mv fr/$*.1 $@