fix eglibc-2.16 manual build
authorJohannes Stezenbach <js@sig21.net>
Mon Oct 22 03:32:28 2012 +0000 (2012-10-22)
changeset 308717cdb10b1675
parent 3086 946d6d133a90
child 3088 7f5a3382968f
fix eglibc-2.16 manual build

Signed-off-by: Johannes Stezenbach <js@sig21.net>
Message-Id: <20121022133228.GA16536@sig21.net>
Patchwork-Id: 193156
scripts/build/libc/glibc-eglibc.sh-common
     1.1 --- a/scripts/build/libc/glibc-eglibc.sh-common	Mon Oct 22 22:40:01 2012 +0200
     1.2 +++ b/scripts/build/libc/glibc-eglibc.sh-common	Mon Oct 22 03:32:28 2012 +0000
     1.3 @@ -453,11 +453,16 @@
     1.4              # Omit JOBSFLAGS as GLIBC has problems building the
     1.5              # manuals in parallel
     1.6              CT_DoExecLog ALL make pdf html
     1.7 -            # EGLIBC doesn't have a install-{pdf.html} and leaves the manuals
     1.8 -            # in the source directory
     1.9 +            # EGLIBC doesn't have a install-{pdf.html}, and older
    1.10 +            # versions leave the manuals in the source directory
    1.11              CT_DoExecLog ALL mkdir -p ${CT_PREFIX_DIR}/share/doc
    1.12 -            CT_DoExecLog ALL cp -av ${src_dir}/manual/*.pdf ${src_dir}/manual/libc \
    1.13 -                ${CT_PREFIX_DIR}/share/doc
    1.14 +            if [ ${CT_LIBC_EGLIBC_2_16_or_later} = "y" ]; then
    1.15 +                CT_DoExecLog ALL cp -av manual/*.pdf manual/libc \
    1.16 +                    ${CT_PREFIX_DIR}/share/doc
    1.17 +            else
    1.18 +                CT_DoExecLog ALL cp -av ${src_dir}/manual/*.pdf ${src_dir}/manual/libc \
    1.19 +                    ${CT_PREFIX_DIR}/share/doc
    1.20 +            fi
    1.21          fi
    1.22  
    1.23          if [ "${CT_LIBC_LOCALES}" = "y" ]; then