From e56a0ae65025887fd6fcba95c360e75b3047a5ee Mon Sep 17 00:00:00 2001 From: ms Date: Sat, 19 Jan 2008 17:46:44 +0000 Subject: [PATCH] Rewrite of make.sh's downloadsrc function. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@1142 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- make.sh | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/make.sh b/make.sh index 278d22fe4..058ed2272 100755 --- a/make.sh +++ b/make.sh @@ -549,28 +549,17 @@ downloadsrc) fi mkdir -p $BASEDIR/log_${MACHINE} echo -e "${BOLD}Preload all source files${NORMAL}" | tee -a $LOGFILE - FINISHED=0 cd $BASEDIR/lfs - for c in `seq $MAX_RETRIES`; do - if (( FINISHED==1 )); then - break - fi - FINISHED=1 - cd $BASEDIR/lfs - for i in *; do - if [ -f "$i" -a "$i" != "Config" ]; then - echo -ne "Loading $i" - make -s -f $i LFS_BASEDIR=$BASEDIR MESSAGE="$i\t ($c/$MAX_RETRIES)" download >> $LOGFILE 2>&1 - if [ $? -ne 0 ]; then - beautify message FAIL - FINISHED=0 - else - if [ $c -eq 1 ]; then - beautify message DONE - fi - fi + for i in *; do + if [ -f "$i" -a "$i" != "Config" ]; then + echo -ne "Loading $i" + make -s -f $i LFS_BASEDIR=$BASEDIR MESSAGE="$i\t" download >> $LOGFILE 2>&1 + if [ $? -ne 0 ]; then + beautify message FAIL + else + beautify message DONE fi - done + fi done cd - >/dev/null 2>&1 ;; -- 2.39.5