X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=scripts%2FDownload;h=9c6b0dc99786cb516dbfeec2e508af0903a943d4;hb=c7b7c7d4ce2f5a6947e42ff37d9584d26eb52ba4;hp=830ebd2bf166ab1f719b4bd5e8de1cdfdd2339e8;hpb=31a91ffcb50fe40bced2bc972f681e506863247a;p=hdw-linux%2Fhdw-linux.git diff --git a/scripts/Download b/scripts/Download index 830ebd2..9c6b0dc 100755 --- a/scripts/Download +++ b/scripts/Download @@ -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 @@ -217,11 +217,14 @@ for dir in `ls -A --ignore="CVS" ./download`; do echo # 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 - elif [ -n "`find ../../.. -name $file`" ] ; then - tolf="`echo $bar | awk '{ print $1 }'`" + elif [ -n "$tolf" ] ; then ln -svf $tolf . else