#! /bin/sh

opts=""
while test $# -gt 1; do
	opts="$opts $1"
	shift
done
url=${1?}

f=`echo "$url" | sed 's!.*://!!'`

set -xe
test ! -r "$f"
wget -x $opts ${url}
test -r "$f"
ln -s "$f"
