#!/bin/bash

if [ -z "$1" ]
then
  echo "Usage: `basename $0` version"
  exit $E_NOARGS
fi

version=$1
echo "Updating links to version $VERSION"

for format in "-py2.4.egg" "-py2.5.egg" "-py2.6.egg" \
              ".tar.gz" ".zip" ".win32.exe"
do
  rm -f Babel-latest$format*
  md5sum Babel-$version$format > Babel-$version$format.md5
  ln -s Babel-$version$format Babel-latest$format
  ln -s Babel-$version$format.md5 Babel-latest$format.md5
done
