#!/bin/bash
#Script to download and overwrite the mp3 library in wine with one working with spotify 0.4.3
#Espen Fjellvær Olsen © 2010

if [[ $EUID -ne 0 ]]; then
   echo "This script must be run as root" 1>&2
   exit 1
fi

if [[ -e `which wget` ]]; then
    wget http://blog.mrfjo.org/winemp3.acm.so -O /usr/lib/wine/winemp3.acm.so 
elif [[ -e `which curl` ]]; then
    curl http://blog.mrfjo.org/winemp3.acm.so -o /usr/lib/wine/winemp3.acm.so  
elif [[ -e `which GET` ]]; then
    GET http://blog.mrfjo.org/winemp3.acm.so > /usr/lib/wine/winemp3.acm.so
else
    echo "You need either curl, wget or GET to utilize this fix."
    echo "Install with aptitude install wget and run this script again."

fi


