#!/bin/sh
#
# Pretty obvious, sources.list changer for debian
#

case "$1" in

	lenny)
		cat << EOF > /etc/apt/sources.list
deb http://ftp.se.debian.org/debian lenny main contrib non-free
EOF
		apt-get update
	;;

	etch)
		cat << EOF > /etc/apt/sources.list
deb http://ftp.se.debian.org/debian etch main contrib non-free
EOF
		apt-get update
	;;

	sarge)
		cat << EOF > /etc/apt/sources.list
deb http://ftp.se.debian.org/debian sarge main contrib non-free
deb http://ftp.se.debian.org/debian-non-US sarge/non-US main contrib non-free
EOF
		apt-get update
	;;

	woody)
		cat << EOF > /etc/apt/sources.list
deb http://ftp.se.debian.org/debian woody main contrib non-free
deb http://ftp.se.debian.org/debian-non-US woody/non-US main contrib non-free
EOF
		apt-get update
	;;

	sid)
		cat << EOF > /etc/apt/sources.list
deb http://ftp.se.debian.org/debian sid main contrib non-free
EOF
		apt-get update
	;;

	wine)
		cat << EOF > /etc/apt/sources.list
deb http://gluck.debian.org/~andreas/debian/dists wine main
EOF
		apt-get update
	;;

	marillat)
		cat << EOF > /etc/apt/sources.list
deb http://www.debian-multimedia.org testing main
#deb ftp://ftp.nerim.net/debian/ unstable main
#deb http://ftp.se.debian.org/debian sid main contrib non-free
EOF
		apt-get update
	;;

	bootsplash)
		cat << EOF > /etc/apt/sources.list
deb http://ftp.se.debian.org/debian sid main contrib non-free
deb http://www.bootsplash.de/files/debian unstable main
EOF
		apt-get update
	;;

	rarewares)
		cat << EOF > /etc/apt/sources.list
deb http://www.rarewares.org/debian unstable main
EOF
		apt-get update
	;;


esac
exit 1
