From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Ackermann Subject: [Patch v2 7/8] Create pdf from all html files Date: Thu, 11 Oct 2012 19:24:40 +0200 (CEST) Message-ID: <114836962.47023.1349976280019.JavaMail.ngmail@webmail22.arcor-online.net> References: <1412437370.46782.1349975589890.JavaMail.ngmail@webmail22.arcor-online.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: philipoakley@iee.org, peff@peff.net, gitster@pobox.com, th.acker66@arcor.de To: th.acker66@arcor.de, git@vger.kernel.org X-From: git-owner@vger.kernel.org Thu Oct 11 19:24:53 2012 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TMMVA-0002nZ-8n for gcvg-git-2@plane.gmane.org; Thu, 11 Oct 2012 19:24:52 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932967Ab2JKRYm (ORCPT ); Thu, 11 Oct 2012 13:24:42 -0400 Received: from mail-in-07.arcor-online.net ([151.189.21.47]:60451 "EHLO mail-in-07.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932758Ab2JKRYl (ORCPT ); Thu, 11 Oct 2012 13:24:41 -0400 Received: from mail-in-02-z2.arcor-online.net (mail-in-02-z2.arcor-online.net [151.189.8.14]) by mx.arcor.de (Postfix) with ESMTP id 1ED32107C11; Thu, 11 Oct 2012 19:24:40 +0200 (CEST) Received: from mail-in-10.arcor-online.net (mail-in-10.arcor-online.net [151.189.21.50]) by mail-in-02-z2.arcor-online.net (Postfix) with ESMTP id 120C9522003; Thu, 11 Oct 2012 19:24:40 +0200 (CEST) Received: from webmail22.arcor-online.net (webmail22.arcor-online.net [151.189.8.137]) by mail-in-10.arcor-online.net (Postfix) with ESMTP id 07BD92D6432; Thu, 11 Oct 2012 19:24:40 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-10.arcor-online.net 07BD92D6432 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1349976280; bh=MXaO8IuVmwBd0PW1xO1zJ6aBgLOXwK4D5DR6GamWUQo=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type:Content-Transfer-Encoding; b=o7JiXaw6u52zNkZ5PmmhXq01ETlvA/hmBYDAl8ATFlGxHtgcawjgdRrshBlG0ZZXY RL8tf9vhsisTlj+Ml+E5VB+lJhl6SUS1f2kehhbVyOSWSfjrq1sYTkf+jVjCcFLoJT u8gHwukK57N3xYwnbiu4KNxQIYRofyjtqNvICcLE= Received: from [188.105.106.236] by webmail22.arcor-online.net (151.189.8.137) with HTTP (Arcor Webmail); Thu, 11 Oct 2012 19:24:39 +0200 (CEST) In-Reply-To: <1412437370.46782.1349975589890.JavaMail.ngmail@webmail22.arcor-online.net> X-ngMessageSubType: MessageSubType_MAIL X-WebmailclientIP: 188.105.106.236 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: >>From 31f86526e0a0bd00be57db3275c860913f668fb8 Mon Sep 17 00:00:00 2001 From: Thomas Ackermann Date: Mon, 1 Oct 2012 20:06:48 +0200 Subject: [PATCH] Create pdf from all html files - use wkhtmltopdf ("patched QT" version) to combine all html files into a single pdf file "git-doc.pdf" - insert page breaks to separate major sections Signed-off-by: Thomas Ackermann --- Documentation/.gitignore | 1 + Documentation/footerend.txt | 4 ++++ Documentation/footerstart.txt | 7 ++++++ Documentation/makedocpdf.sh | 53 +++++++++++++++++++++++++++++++++++++++++++ Documentation/pagebreak.txt | 1 + 5 files changed, 66 insertions(+) create mode 100644 Documentation/footerend.txt create mode 100644 Documentation/footerstart.txt create mode 100755 Documentation/makedocpdf.sh create mode 100644 Documentation/pagebreak.txt diff --git a/Documentation/.gitignore b/Documentation/.gitignore index d62aebd..fba4730 100644 --- a/Documentation/.gitignore +++ b/Documentation/.gitignore @@ -10,3 +10,4 @@ howto-index.txt doc.dep cmds-*.txt manpage-base-url.xsl +docfiles.txt diff --git a/Documentation/footerend.txt b/Documentation/footerend.txt new file mode 100644 index 0000000..ed16923 --- /dev/null +++ b/Documentation/footerend.txt @@ -0,0 +1,4 @@ + + + + diff --git a/Documentation/footerstart.txt b/Documentation/footerstart.txt new file mode 100644 index 0000000..a2746ef --- /dev/null +++ b/Documentation/footerstart.txt @@ -0,0 +1,7 @@ + + + + + + +
diff --git a/Documentation/makedocpdf.sh b/Documentation/makedocpdf.sh new file mode 100755 index 0000000..5f1a2c1 --- /dev/null +++ b/Documentation/makedocpdf.sh @@ -0,0 +1,53 @@ +#!/bin/sh + +rm -f git-doc.pdf + +cat pagebreak.txt >pagebreak.html + +cat /dev/null >docfiles.txt + +ls gittutorial.html >>docfiles.txt +ls gittutorial-2.html >>docfiles.txt +ls everyday.html >>docfiles.txt +ls gitworkflows.html >>docfiles.txt + +ls pagebreak.html >>docfiles.txt +ls git.html >>docfiles.txt +ls git-a*.html >>docfiles.txt +ls git-bisect.html >>docfiles.txt +ls git-b[j-z]*.html >>docfiles.txt +ls git-[c-s]*.html >>docfiles.txt +ls git-ta*.html >>docfiles.txt +ls gitk.html >>docfiles.txt +ls git-[u-z]*.html >>docfiles.txt + +ls pagebreak.html >>docfiles.txt +ls gita*.html >>docfiles.txt +ls git-bisect-lk2009.html >>docfiles.txt +ls git[cdghimnr]*.html >>docfiles.txt +ls git-tools.html >>docfiles.txt +ls gitweb*.html >>docfiles.txt + +ls pagebreak.html >>docfiles.txt +ls howto-index.html >>docfiles.txt +ls howto/*.html >>docfiles.txt + +ls pagebreak.html >>docfiles.txt +ls technical/[b-z]*.html >>docfiles.txt + +ls pagebreak.html >>docfiles.txt +ls technical/api-index.html >>docfiles.txt +ls technical/api-[a-h]*.html >>docfiles.txt +ls technical/api-in-*.html >>docfiles.txt +ls technical/api-[j-z]*.html >>docfiles.txt + +ls pagebreak.html >>docfiles.txt +ls RelNotes/*.html >>docfiles.txt + +cat /dev/null >footer.html + +cat footerstart.txt >>footer.html +cat ../GIT-VERSION-FILE >>footer.html +cat footerend.txt >>footer.html + +cat docfiles.txt | xargs cat | wkhtmltopdf --book --footer-html footer.html --disable-external-links - git-doc.pdf diff --git a/Documentation/pagebreak.txt b/Documentation/pagebreak.txt new file mode 100644 index 0000000..fdaffd1 --- /dev/null +++ b/Documentation/pagebreak.txt @@ -0,0 +1 @@ +

-- 1.7.11.msysgit.1 --- Thomas