public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] libc/newlib: build manual for newlib
@ 2011-12-15  7:44 Zhenqiang Chen
  2011-12-15 22:33 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Zhenqiang Chen @ 2011-12-15  7:44 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-15 22:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-15  7:44 [PATCH] libc/newlib: build manual for newlib Zhenqiang Chen
2011-12-15 22:33 ` Yann E. MORIN

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).