Return-Path: X-Original-To: distix@pieni.net Delivered-To: distix@pieni.net Received: from yaffle.pepperfish.net (yaffle.pepperfish.net [88.99.213.221]) by pieni.net (Postfix) with ESMTPS id 49F0D44F4F for ; Tue, 4 Jul 2017 12:00:36 +0000 (UTC) Received: from platypus.pepperfish.net (unknown [10.112.101.20]) by yaffle.pepperfish.net (Postfix) with ESMTP id 0C11C41E3A; Tue, 4 Jul 2017 13:00:36 +0100 (BST) Received: from ip6-localhost.nat ([::1] helo=platypus.pepperfish.net) by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian)) id 1dSMVQ-0008H8-0w; Tue, 04 Jul 2017 13:00:36 +0100 Received: from [10.112.101.21] (helo=inmail2.pepperfish.net) by platypus.pepperfish.net with esmtps (Exim 4.80 #2 (Debian)) id 1dSMVP-0008Gw-Fk for ; Tue, 04 Jul 2017 13:00:35 +0100 Received: from suhail.uberspace.de ([185.26.156.24]) by inmail2.pepperfish.net with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1dSMVM-0000ZU-Vh for obnam-dev@obnam.org; Tue, 04 Jul 2017 13:00:35 +0100 Received: (qmail 28834 invoked by uid 651); 4 Jul 2017 12:00:22 -0000 Received: from p5DC95E0D.dip0.t-ipconnect.de (p5DC95E0D.dip0.t-ipconnect.de [93.201.94.13]) by htjn.suhail.uberspace.de (Horde Framework) with HTTPS; Tue, 04 Jul 2017 14:00:19 +0200 Date: Tue, 04 Jul 2017 14:00:19 +0200 Message-ID: <20170704140019.Horde.A5GoYJLxvMMaVBfSX0CmbnX@htjn.suhail.uberspace.de> From: Jan Niggemann To: obnam-dev@obnam.org References: <6c89be1a-a926-4f55-cf08-26aee733555a@univpm.it> <20170703170630.75410-1-remirampin@gmail.com> In-Reply-To: <20170703170630.75410-1-remirampin@gmail.com> User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Pepperfish-Transaction: a81a-ccad-e654-942f X-Spam-Score: -1.8 X-Spam-Score-int: -17 X-Spam-Bar: - X-Scanned-By: pepperfish.net, Tue, 04 Jul 2017 13:00:35 +0100 X-Spam-Report: Content analysis details: (-1.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [185.26.156.24 listed in list.dnswl.org] 0.5 PPF_RECEIVED_HTTP Received header mentions http -0.5 PPF_USER_AGENT User-Agent: exists -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 PPF_SPLIT_TAG RAW: Body contains a split HTML tag X-ACL-Warn: message may be spam X-Scan-Signature: ca2629b4d864ef923609187b99ef01c5 Subject: Re: [PATCH] Use additional code from format-de* for all langs X-BeenThere: obnam-dev@obnam.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Obnam development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: obnam-dev-bounces@obnam.org Errors-To: obnam-dev-bounces@obnam.org Have not yet applied and tested, but looking at the code it "looks OK". I'll try to squeeze in some time to test this, either this weekend or=20=20 next=20one. -- jan Zitat von Remi Rampin : > --- > manual/Makefile | 35 ++++++++++++++++++++++------------- > manual/format-de-html | 39 --------------------------------------- > manual/format-de-pdf | 38 -------------------------------------- > manual/format-html | 7 +++++-- > manual/format-pdf | 8 ++++++-- > 5 files changed, 33 insertions(+), 94 deletions(-) > delete mode 100755 manual/format-de-html > delete mode 100755 manual/format-de-pdf > > diff --git a/manual/Makefile b/manual/Makefile > index ac291953..b8c22cf5 100644 > --- a/manual/Makefile > +++ b/manual/Makefile > @@ -18,8 +18,9 @@ > > TITLE_EN =3D Backups with Obnam > TITLE_DE =3D Backups mit Obnam > -TITLE_FR =3D Sauvegardes avec Obnam > TRANS_DE =3D =C3=9Cbersetzung: Jan Niggemann (jn@hz6.de) > +TITLE_FR =3D Sauvegardes avec Obnam > +TRANS_FR =3D Traduction : Pierrick Martinez, Remi Rampin > AUTHOR =3D Lars Wirzenius (liw@liw.fi) > VERSION =3D Version $(shell git describe || python ../setup.py --version= ) > > @@ -27,13 +28,13 @@ en_sources =3D $(shell ls en/*.mdwn) > fr_sources =3D $(shell ls fr/*.mdwn) > de_sources =3D $(shell ls de/*.mdwn) > pdfs =3D \ > - obnam-manual.en.pdf \ > + obnam-manual.en.pdf \ > obnam-manual.fr.pdf \ > - obnam-manual.de.pdf > + obnam-manual.de.pdf > htmls =3D \ > - obnam-manual.en.html \ > + obnam-manual.en.html \ > obnam-manual.fr.html \ > - obnam-manual.de.html > + obnam-manual.de.html > > all: html pdf > > @@ -42,25 +43,33 @@ html: $(htmls) > pdf: $(pdfs) > > obnam-manual.en.pdf: Makefile $(en_sources) > - ./format-pdf $@ "$(TITLE_EN)" "$(AUTHOR)" "$(VERSION)" $(en_sources) > + ./format-pdf $@ \ > + "$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "english" "" \ > + $(en_sources) > > obnam-manual.en.html: Makefile $(en_sources) ../obnam.css > - ./format-html $@ "$(TITLE_EN)" "$(AUTHOR)" "$(VERSION)" $(en_sources) > + ./format-html $@ \ > + "$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "english" "" \ > + $(en_sources) > > obnam-manual.fr.pdf: Makefile $(fr_sources) > - ./format-pdf $@ "$(TITLE_FR)" "$(AUTHOR)" "$(VERSION)" $(fr_sources) > + ./format-pdf $@ \ > + "$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "french" "$(TRANS_FR)" \ > + $(fr_sources) > > obnam-manual.fr.html: Makefile $(fr_sources) ../obnam.css > - ./format-html $@ "$(TITLE_FR)" "$(AUTHOR)" "$(VERSION)" $(fr_sources) > + ./format-html $@ \ > + "$(TITLE_FR)" "$(AUTHOR)" "$(VERSION)" "french" "$(TRANS_FR)" \ > + $(fr_sources) > > obnam-manual.de.pdf: Makefile $(de_sources) > - ./format-de-pdf $@ \ > - "$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "$(TRANS_DE)" \ > + ./format-pdf $@ \ > + "$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "german" "$(TRANS_DE)" \ > $(de_sources) > > obnam-manual.de.html: Makefile $(de_sources) ../obnam.css > - ./format-de-html $@ \ > - "$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "$(TRANS_DE)" \ > + ./format-html $@ \ > + "$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "german" "$(TRANS_DE)" \ > $(de_sources) > > clean: > diff --git a/manual/format-de-html b/manual/format-de-html > deleted file mode 100755 > index 5411942c..00000000 > --- a/manual/format-de-html > +++ /dev/null > @@ -1,39 +0,0 @@ > -#!/bin/sh > -# Copyright 2014 Lars Wirzenius > -# Copyright 2014 Jan Niggemann > -# > -# This program is free software: you can redistribute it and/or modify > -# it under the terms of the GNU General Public License as published by > -# the Free Software Foundation, either version 3 of the License, or > -# (at your option) any later version. > -# > -# This program is distributed in the hope that it will be useful, > -# but WITHOUT ANY WARRANTY; without even the implied warranty of > -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > -# GNU General Public License for more details. > -# > -# You should have received a copy of the GNU General Public License > -# along with this program. If not, see . > -# > -# =3D*=3D License: GPL-3+ =3D*=3D > - > -set -eu > - > -OUTPUT=3D"$1" > -TITLE=3D"$2" > -AUTHOR=3D"$3" > -VERSION=3D"$4" > -TRANS_DE=3D"$5" > -shift 5 > - > -cat > 000.mdwn < -% $TITLE > -% $AUTHOR > - $TRANS_DE > -% $VERSION > -EOF > - > -pandoc -H ../obnam.css --smart --toc --chapters --number-sections \ > - --standalone --self-contained -V lang=3Dgerman -V geometry:a4paper \ > - -o "$OUTPUT" 000.mdwn "$@" > -rm -f 000.mdwn > diff --git a/manual/format-de-pdf b/manual/format-de-pdf > deleted file mode 100755 > index 15ef78eb..00000000 > --- a/manual/format-de-pdf > +++ /dev/null > @@ -1,38 +0,0 @@ > -#!/bin/sh > -# Copyright 2014,2016 Lars Wirzenius > -# Copyright 2014,2017 Jan Niggemann > -# > -# This program is free software: you can redistribute it and/or modify > -# it under the terms of the GNU General Public License as published by > -# the Free Software Foundation, either version 3 of the License, or > -# (at your option) any later version. > -# > -# This program is distributed in the hope that it will be useful, > -# but WITHOUT ANY WARRANTY; without even the implied warranty of > -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > -# GNU General Public License for more details. > -# > -# You should have received a copy of the GNU General Public License > -# along with this program. If not, see . > -# > -# =3D*=3D License: GPL-3+ =3D*=3D > - > -set -eu > - > -OUTPUT=3D"$1" > -TITLE=3D"$2" > -AUTHOR=3D"$3" > -VERSION=3D"$4" > -TRANS_DE=3D"$5" > -shift 5 > - > -cat > 000.mdwn < -% $TITLE > -% $AUTHOR > - $TRANS_DE > -% $VERSION > -EOF > - > -pandoc --smart --toc --chapters --number-sections \ > - -V lang=3Dgerman -V geometry:a4paper -o "$OUTPUT" 000.mdwn "$@" > -rm -f 000.mdwn > diff --git a/manual/format-html b/manual/format-html > index 14bc3750..238174a8 100755 > --- a/manual/format-html > +++ b/manual/format-html > @@ -22,15 +22,18 @@ OUTPUT=3D"$1" > TITLE=3D"$2" > AUTHOR=3D"$3" > VERSION=3D"$4" > -shift 4 > +LANG=3D"$5" > +TRANSLATOR=3D"$6" > +shift 6 > > cat > 000.mdwn < % $TITLE > % $AUTHOR > + $TRANSLATOR > % $VERSION > EOF > > pandoc -H ../obnam.css --smart --toc --chapters --number-sections \ > - --standalone --self-contained -V geometry:lettersize \ > + --standalone --self-contained -V lang=3D"$LANG" -V geometry:a4paper = \ > -o "$OUTPUT" 000.mdwn "$@" > rm -f 000.mdwn > diff --git a/manual/format-pdf b/manual/format-pdf > index bba45c6e..e1cf9daf 100755 > --- a/manual/format-pdf > +++ b/manual/format-pdf > @@ -22,13 +22,17 @@ OUTPUT=3D"$1" > TITLE=3D"$2" > AUTHOR=3D"$3" > VERSION=3D"$4" > -shift 4 > +LANG=3D"$5" > +TRANSLATOR=3D"$6" > +shift 6 > > cat > 000.mdwn < % $TITLE > % $AUTHOR > + $TRANSLATOR > % $VERSION > EOF > > -pandoc --smart --toc --chapters --number-sections -o "$OUTPUT" 000.mdwn = "$@" > +pandoc --smart --toc --chapters --number-sections \ > + -V lang=3D"$LANG" -V geometry:a4paper -o "$OUTPUT" 000.mdwn "$@" > rm -f 000.mdwn > -- > 2.13.2 > > > _______________________________________________ > obnam-dev mailing list > obnam-dev@obnam.org > http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam= .org --=20 gpg=20--keyserver pgp.mit.edu --recv-keys 0x514FCA9C F013 93C0 306C 1E31 4E00 09FA 21EC A2F6 514F CA9C _______________________________________________ obnam-dev mailing list obnam-dev@obnam.org http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org