#! /bin/bash -x

sed -i.bak 's/deb/\# deb/' /etc/apt/sources.list.d/trinity.list

cat > /etc/apt/sources.list.d/trinity.list << EOF
deb http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-r14.0.0/debian wheezy main
deb-src http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-r14.0.0/debian wheezy main
deb http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-builddeps-r14.0.0/debian wheezy main
deb-src http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-builddeps-r14.0.0/debian wheezy main
EOF

aptitude update && aptitude -y dist-upgrade
