summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-06-20 10:58:45 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-06-20 10:58:45 (GMT)
commit8f0f8a170a80f916f1b06f953bf1341adca733f0 (patch)
treedf700c6b7eb9528a28a0e979870b12cfe62b6521 /scripts
parent548df9d13e87e656c50c23a8538288344c58507b (diff)
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(-)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/debug/300-gdb.sh8
-rw-r--r--scripts/build/mpfr.sh10
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
}