family=$1
dist=$2
-set -e
-
-if [ -z "$family" ]; then
- echo "You need to provide a distribution family ('debian', 'ubuntu'); prefix with 'nd+' to enable the NeuroDebian repository."
- exit 1
-fi
-
-if [ -z "$dist" ]; then
- echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
- exit 1
-fi
-
# basic settings
-cowbuilderroot="/home/cowbuilder"
+cowbuilderroot="/home/neurodebian"
buildplace="${cowbuilderroot}/build"
+# all cuurently supported dists
+alldists="nd+debian-lenny nd+debian-squeeze nd+debian-sid \
+ nd+ubuntu-maverick nd+ubuntu-lucid nd+ubuntu-karmic nd+ubuntu-jaunty"
+
# default is debian
aptcache="${cowbuilderroot}/debian_aptcache"
components="main contrib non-free"
mirror="http://debian.lcs.mit.edu/debian"
# overwrite necessary bits for ubuntu
-if [ "$family" = "ubuntu" ]; then
+if [ "${family#nd+}" = "ubuntu" ]; then
aptcache="${cowbuilderroot}/ubuntu_aptcache"
components="main universe"
mirror="http://ubuntu.media.mit.edu/ubuntu"