- case "$url" in
-# http://kernel.org/*|http://www.kernel.org/*)
-# use_rsync=true
-# rurl=$(echo "$url" | sed -r 's,^http://(www\.)?kernel\.org,master.kernel.org:,')
-# ;;
- http://ozlabs.org/~*)
- use_rsync=true
- rurl=$(echo "$url" | sed -r 's,^http://ozlabs\.org/([^/]*),ozlabs.org:\1/public_html,')
- ;;
- *)
- use_rsync=false
- ;;
- esac
- cd ../quilt || {
- echo "Cannot chdir to ../quilt" 1>&2
- continue
- }
- [ -d "$name" ] || mkdir "$name" || {
- echo "Cannot create quilt directory for $name" 1>&2
- cd "$origwd"
- continue
- }
- cd "$name" || {
- echo "Cannot chdir to quilt directory for $name" 1>&2
- cd "$origwd"
- continue
- }
- if $use_rsync; then
- rsync -avz "$rurl/series" series || {
- echo "rsync of $name series file failed" 1>&2
- cd ..
- rm -rf "$name"
- git checkout "$name"
- cd "$origwd"
- continue
- }
- else
- wget -N -nv --no-cache "$url/series" || {
- echo "Wget of $name series file failed" 1>&2
- cd ..
- rm -rf "$name"
- git checkout "$name"
- cd "$origwd"
- continue
- }