reorganized Config file
[hdw-linux/hdw-linux.git] / scripts / Download
index cd73b12..9c6b0dc 100755 (executable)
@@ -190,7 +190,7 @@ for dir in `ls -A --ignore="CVS" ./download`; do
                        rm -rf $file $module
                        dlerror=0
                        if [ "${is_cvs}" = "cvs" ] ; then
-                               cvs -z 9 -d:pserver:${user}@${loc}:/${repos} co $module
+                               cvs -z3 -d:pserver:${user}@${loc}:/${repos} co $module
                                [ "$?" != "0" ] && dlerror=1
                        else
                                export CVS_RSH=ssh
@@ -218,6 +218,9 @@ for dir in `ls -A --ignore="CVS" ./download`; do
                # possibly the package exists
                mkdir -p ./download/$dir/$pkg ; cd ./download/$dir/$pkg
                                tolf="`find ../.. -name $file | tail -1`"
+                               if [ -n "$tolf" ] ; then
+                                       [ -d $tolf ] && tolf=""
+                               fi
                                if [ -f ./$file ] ; then
                                        echo "$file allready downloaded."
                                        echo