public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: Zhenqiang Chen <zhenqiang.chen@linaro.org>
To: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Cc: crossgcc@sourceware.org
Subject: [PATCH] libc/newlib: build manual for newlib
Date: Thu, 15 Dec 2011 07:44:00 -0000	[thread overview]
Message-ID: <CACgzC7DgvWN3-TLWyYo1dd5Dv1UofjiuQzEj+ojRh9VJ53wZWA@mail.gmail.com> (raw)

exporting patch:
# HG changeset patch
# User Zhenqiang Chen <zhenqiang.chen@linaro.org>
# Date 1323933633 -28800
# Node ID 640b429bc64c2fda03a9ac4716c3c7c222dbfdb6
# Parent  4193d6e6a17430a177fa88c287879c2c35e319f3
libc/newlib: build manual for newlib

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>

diff -r 4193d6e6a174 -r 640b429bc64c scripts/build/libc/newlib.sh
--- a/scripts/build/libc/newlib.sh      Tue Dec 13 23:32:39 2011 +0100
+++ b/scripts/build/libc/newlib.sh      Thu Dec 15 15:20:33 2011 +0800
@@ -110,6 +110,24 @@
     CT_DoLog EXTRA "Installing C library"
     CT_DoExecLog ALL make install install_root="${CT_SYSROOT_DIR}"

+    if [ "${CT_BUILD_MANUALS}" = "y" ]; then
+        local -a doc_dir="${CT_BUILD_DIR}/build-libc/${CT_TARGET}"
+
+        CT_DoLog EXTRA "Building and installing the C library manual"
+        CT_DoExecLog ALL make pdf html
+
+        # NEWLIB install-{pdf.html} fail for some versions
+        CT_DoExecLog ALL mkdir -p ${CT_PREFIX_DIR}/share/doc/newlib
+        CT_DoExecLog ALL cp -av ${doc_dir}/newlib/libc/libc.pdf \
+                ${CT_PREFIX_DIR}/share/doc/newlib
+        CT_DoExecLog ALL cp -av ${doc_dir}/newlib/libm/libm.pdf \
+                ${CT_PREFIX_DIR}/share/doc/newlib
+        CT_DoExecLog ALL cp -av ${doc_dir}/newlib/libc/libc.html \
+                ${CT_PREFIX_DIR}/share/doc/newlib
+        CT_DoExecLog ALL cp -av ${doc_dir}/newlib/libm/libm.html \
+                ${CT_PREFIX_DIR}/share/doc/newlib
+    fi
+
     CT_EndStep
 }

--
For unsubscribe information see http://sourceware.org/lists.html#faq

             reply	other threads:[~2011-12-15  7:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-15  7:44 Zhenqiang Chen [this message]
2011-12-15 22:33 ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACgzC7DgvWN3-TLWyYo1dd5Dv1UofjiuQzEj+ojRh9VJ53wZWA@mail.gmail.com \
    --to=zhenqiang.chen@linaro.org \
    --cc=crossgcc@sourceware.org \
    --cc=yann.morin.1998@anciens.enib.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).