#!/bin/sh

http_source="http://ftp.de.debian.org/debian/pool/contrib/g/glx-alternatives/"
version="0.8.7~bpo9"

for file in `wget -qO- "${http_source}" | ./bquery a -a href | grep "${version}" | grep -e '_amd64\.deb' -e '_all\.deb' -e '\.dsc' -e '\.tar\.xz'`; do
  wget "${http_source}${file}"
done
