#!/bin/sh name0=`dirname "$0"` if [ "$1" = "--help" ] then echo "Usage: $name0 URL [ARCH...]" echo echo "Uses the specified URL to download the package for the specified architectures." echo echo "Where:" echo " URL Is the URL of the package for one architecture." echo " ARCH... Is a list of architectures to download the package for. If no architecture" echo " is specified then only amd64 and i386 are downloaded. If the architecture" echo " is 'all' then the package is downloaded for all supported architectures." exit 0 fi url="$1" shift if [ $# -eq 0 ] then set -- amd64 i386 elif [ "$1" = "all" ] then # All official ports set -- amd64 arm64 armel armhf hurd-i386 i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc ppc64el s390x fi base=`echo "$url" | sed -e 's/_[a-z0-9]*\.deb$//'` for arch in "$@" do wget -c -N --no-verbose --show-progress "${base}_$arch.deb" done