From patchwork Wed Sep 21 23:53:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Kosnik X-Patchwork-Id: 115872 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id A4B1DB6F68 for ; Thu, 22 Sep 2011 09:53:25 +1000 (EST) Received: (qmail 30134 invoked by alias); 21 Sep 2011 23:53:22 -0000 Received: (qmail 30119 invoked by uid 22791); 21 Sep 2011 23:53:21 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, SPF_HELO_PASS, TW_DB X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Sep 2011 23:53:05 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p8LNr4D9018149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 21 Sep 2011 19:53:04 -0400 Received: from shotwell (ovpn-113-92.phx2.redhat.com [10.3.113.92]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p8LNr3Lp001114 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 21 Sep 2011 19:53:04 -0400 Date: Wed, 21 Sep 2011 16:53:03 -0700 From: Benjamin Kosnik To: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org Subject: [v3] doc-epub Message-ID: <20110921165303.1d457206@shotwell> Mime-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Fix for image directory location. The generated epub is ok, but missing images. There's another tool that may be used to generate epubs, called db2epub.py, but it isn't cooperating. So we will stick with the status quo for now. -benjamin 2011-09-21 Benjamin Kosnik ${manual_xml}; $(XMLLINT) $(XMLLINT_FLAGS) \ ${top_srcdir}/doc/xml/spine.xml > ${set_xml}; - if [ ! -d "${docbook_outdir}/xml/images" ]; then \ - $(LN_S) ${top_srcdir}/doc/xml/images ${docbook_outdir}/xml/; \ - fi $(STAMP) stamp-xml-single-docbook doc-xml-single-docbook: stamp-xml-single-docbook @@ -595,10 +591,14 @@ doc-texinfo-docbook: stamp-texinfo-docbook doc-info-docbook: stamp-info-docbook -# EPUB, via dbtoepub + ruby +# EPUB, via ruby + dbtoepub +# Can verify document with: epubcheck manual_epub = ${docbook_outdir}/epub/libstdc++-manual.epub stamp-epub-docbook: stamp-xml-single-docbook ${docbook_outdir}/epub @echo "Generating epub files..." + if [ ! -d "${docbook_outdir}/images" ]; then \ + $(LN_S) ${top_srcdir}/doc/xml/images ${docbook_outdir}/; \ + fi ${XSL_STYLE_DIR}/epub/bin/dbtoepub -v -d -o ${manual_epub} ${set_xml} $(STAMP) stamp-epub-docbook