Really don't re-build MPFR autotools files at each run.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jun 20 10:58:45 2008 +0000 (2008-06-20)
changeset 598a2b23333b17a
parent 597 443a8d2d4790
child 599 5105b3e83f26
Really don't re-build MPFR autotools files at each run.

/trunk/scripts/build/debug/300-gdb.sh | 8 6 2 0 ++++++--
/trunk/scripts/build/mpfr.sh | 10 7 3 0 +++++++---
2 files changed, 13 insertions(+), 5 deletions(-)
scripts/build/debug/300-gdb.sh
scripts/build/mpfr.sh
     1.1 --- a/scripts/build/debug/300-gdb.sh	Fri Jun 20 09:57:04 2008 +0000
     1.2 +++ b/scripts/build/debug/300-gdb.sh	Fri Jun 20 10:58:45 2008 +0000
     1.3 @@ -5,7 +5,9 @@
     1.4  do_print_filename() {
     1.5      [ "${CT_GDB}" = "y" ] || return 0
     1.6      echo "gdb$(do_debug_gdb_suffix)"
     1.7 -    [ "${CT_GDB_NATIVE}" = "y" ] && echo "ncurses-${CT_NCURSES_VERSION}"
     1.8 +    if [ "${CT_GDB_NATIVE}" = "y" ]; then
     1.9 +        echo "ncurses-${CT_NCURSES_VERSION}"
    1.10 +    fi
    1.11  }
    1.12  
    1.13  do_debug_gdb_suffix() {
    1.14 @@ -28,7 +30,9 @@
    1.15  
    1.16  do_debug_gdb_extract() {
    1.17      CT_ExtractAndPatch "gdb$(do_debug_gdb_suffix)"
    1.18 -    [ "${CT_GDB_NATIVE}" = "y" ] && CT_ExtractAndPatch "ncurses-${CT_NCURSES_VERSION}"
    1.19 +    if [ "${CT_GDB_NATIVE}" = "y" ]; then
    1.20 +        CT_ExtractAndPatch "ncurses-${CT_NCURSES_VERSION}"
    1.21 +    fi
    1.22  }
    1.23  
    1.24  do_debug_gdb_build() {
     2.1 --- a/scripts/build/mpfr.sh	Fri Jun 20 09:57:04 2008 +0000
     2.2 +++ b/scripts/build/mpfr.sh	Fri Jun 20 10:58:45 2008 +0000
     2.3 @@ -24,11 +24,15 @@
     2.4      # built sanely, and thus ./configure fails on Gentoo.
     2.5      # See: http://sourceware.org/ml/crossgcc/2008-05/msg00080.html
     2.6      # and: http://sourceware.org/ml/crossgcc/2008-06/msg00005.html
     2.7 -    # This hack is not bad per se, but the MPFR guys would be better to not
     2.8 +    # This hack is not bad per se, but the MPFR guys would be better not to
     2.9      # do that in the future...
    2.10      CT_Pushd "${CT_SRC_DIR}/${CT_MPFR_FILE}"
    2.11 -    autoreconf -fi  2>&1 |CT_DoLog ALL
    2.12 -    libtoolize      2>&1 |CT_DoLog ALL
    2.13 +    if [ ! -f .autotools.ct-ng ]; then
    2.14 +        CT_DoLog EXTRA "Re-building autotools files"
    2.15 +        autoreconf -fi  2>&1 |CT_DoLog ALL
    2.16 +        libtoolize -f   2>&1 |CT_DoLog ALL
    2.17 +        touch .autotools.ct-ng
    2.18 +    fi
    2.19      CT_Popd
    2.20  }
    2.21