]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Rewrite of make.sh's downloadsrc function.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 19 Jan 2008 17:46:44 +0000 (17:46 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 19 Jan 2008 17:46:44 +0000 (17:46 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@1142 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

make.sh

diff --git a/make.sh b/make.sh
index 278d22fe467a43dc5fdd34e7295bd8f4933c23b0..058ed2272a9764f4e80a7030c8bcb05f11c658d1 100755 (executable)
--- 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
        ;;