6 if [ -z "$family" ]; then
7 echo "You need to provide a distribution family ('debian', 'ubuntu'); prefix with 'nd+' to enable the NeuroDebian repository."
11 if [ -z "$dist" ]; then
12 echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
17 cowbuilderroot="/home/neurodebian"
18 buildplace="${cowbuilderroot}/build"
20 # all cuurently supported dists
21 alldists="nd+debian-sid nd+debian-squeeze nd+debian-lenny \
22 nd+ubuntu-hardy nd+ubuntu-intrepid nd+ubuntu-jaunty"
25 aptcache="${cowbuilderroot}/debian_aptcache"
26 components="main contrib non-free"
27 mirror="http://debian.lcs.mit.edu/debian"
29 # overwrite necessary bits for ubuntu
30 if [ "${family#nd+}" = "ubuntu" ]; then
31 aptcache="${cowbuilderroot}/ubuntu_aptcache"
32 components="main universe"
33 mirror="http://ubuntu.media.mit.edu/ubuntu"
36 if [ ! -d $aptcache ]; then mkdir $aptcache; fi