#!/bin/sh

ORIGPATH="$( pwd )"
cd ${ORIGPATH}

mkdir source 2>/dev/null
cd source

function grab_sourceball () {
local URL="$1"
local file="$( echo ${URL} | rev | cut -d/ -f1 | rev )"
if [ ! -f ${file}* ]; then
   echo "Downloading ${URL}"
   wget -N ${URL}
 else
   echo "Already have ${file}, skipping.."
fi
}

grab_sourceball http://ftp.debian.org/debian/pool/main/a/autoconf2.13/autoconf2.13_2.13.orig.tar.gz
grab_sourceball http://ftp.debian.org/debian/pool/main/a/autoconf2.13/autoconf2.13_2.13-48.diff.gz

