From 8f0f8a170a80f916f1b06f953bf1341adca733f0 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Fri, 20 Jun 2008 10:58:45 +0000 Subject: 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 --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index c6ba4ef..680375b 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -5,7 +5,9 @@ is_enabled="${CT_GDB}" 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_get() { 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 --git a/scripts/build/mpfr.sh b/scripts/build/mpfr.sh index f65b680..2df6a38 100644 --- a/scripts/build/mpfr.sh +++ b/scripts/build/mpfr.sh @@ -24,11 +24,15 @@ do_mpfr_extract() { # 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 } -- cgit v0.10.2-6-g49f6