# HG changeset patch # User "Yann E. MORIN" # Date 1213959525 0 # Node ID a2b23333b17ab2f29f07431d6caccf9f86b77747 # Parent 443a8d2d4790330d4fb5f128ccca3887215792f8 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(-) diff -r 443a8d2d4790 -r a2b23333b17a scripts/build/debug/300-gdb.sh --- a/scripts/build/debug/300-gdb.sh Fri Jun 20 09:57:04 2008 +0000 +++ b/scripts/build/debug/300-gdb.sh Fri Jun 20 10:58:45 2008 +0000 @@ -5,7 +5,9 @@ do_print_filename() { [ "${CT_GDB}" = "y" ] || return 0 echo "gdb$(do_debug_gdb_suffix)" - [ "${CT_GDB_NATIVE}" = "y" ] && echo "ncurses-${CT_NCURSES_VERSION}" + if [ "${CT_GDB_NATIVE}" = "y" ]; then + echo "ncurses-${CT_NCURSES_VERSION}" + fi } do_debug_gdb_suffix() { @@ -28,7 +30,9 @@ do_debug_gdb_extract() { CT_ExtractAndPatch "gdb$(do_debug_gdb_suffix)" - [ "${CT_GDB_NATIVE}" = "y" ] && CT_ExtractAndPatch "ncurses-${CT_NCURSES_VERSION}" + if [ "${CT_GDB_NATIVE}" = "y" ]; then + CT_ExtractAndPatch "ncurses-${CT_NCURSES_VERSION}" + fi } do_debug_gdb_build() { diff -r 443a8d2d4790 -r a2b23333b17a scripts/build/mpfr.sh --- a/scripts/build/mpfr.sh Fri Jun 20 09:57:04 2008 +0000 +++ b/scripts/build/mpfr.sh Fri Jun 20 10:58:45 2008 +0000 @@ -24,11 +24,15 @@ # built sanely, and thus ./configure fails on Gentoo. # See: http://sourceware.org/ml/crossgcc/2008-05/msg00080.html # and: http://sourceware.org/ml/crossgcc/2008-06/msg00005.html - # This hack is not bad per se, but the MPFR guys would be better to not + # This hack is not bad per se, but the MPFR guys would be better not to # do that in the future... CT_Pushd "${CT_SRC_DIR}/${CT_MPFR_FILE}" - autoreconf -fi 2>&1 |CT_DoLog ALL - libtoolize 2>&1 |CT_DoLog ALL + if [ ! -f .autotools.ct-ng ]; then + CT_DoLog EXTRA "Re-building autotools files" + autoreconf -fi 2>&1 |CT_DoLog ALL + libtoolize -f 2>&1 |CT_DoLog ALL + touch .autotools.ct-ng + fi CT_Popd }