#!/bin/bash

# See: https://www.redhat.com/archives/fedora-cvs-commits/2005-November/msg00159.html
#      https://www.redhat.com/archives/fedora-devel-java-list/2005-November/msg00004.html

readonly mirror=http://your.favorite.mirror.com/pub/fedora/linux/core/development/i386/Fedora/RPMS
#readonly mirror=http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/Fedora/RPMS

pkgs=(ant ant-{antlr,apache-{bcel,bsf,log4j,oro,regexp,resolver},commons-logging,debuginfo,javadoc,javamail,jdepend,jsch,junit,manual,nodeps,scripts,swing,trax})

for pkg in ${pkgs[@]}; do
    cmd="curl -O $mirror/$pkg-1.6.5-0jpp_1fc.i386.rpm"
    echo $cmd
    $cmd
done

sudo rpm -Uvh --oldpackage ant*-1.6.5-0jpp_1fc.i386.rpm

