]> git.donarmstrong.com Git - neurodebian.git/blob - tools/nd_cmdsettings.sh
Add the cowbuilder tools to the repos.
[neurodebian.git] / tools / nd_cmdsettings.sh
1 family=$1
2 dist=$2
3
4 if [ -z "$family" ]; then
5   echo "You need to provide a distribution family ('debian', 'ubuntu'); prefix with 'nd+' to enable the NeuroDebian repository."
6   exit 1
7 fi
8
9 if [ -z "$dist" ]; then
10   echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
11   exit 1
12 fi
13
14 # basic settings
15 cowbuilderroot="/home/cowbuilder"
16 buildplace="${cowbuilderroot}/build"
17
18 # default is debian
19 aptcache="${cowbuilderroot}/debian_aptcache"
20 components="main contrib non-free"
21 mirror="http://debian.lcs.mit.edu/debian"
22
23 # overwrite necessary bits for ubuntu
24 if [ "$family" = "ubuntu" ]; then
25   aptcache="${cowbuilderroot}/ubuntu_aptcache"
26   components="main universe"
27   mirror="http://ubuntu.media.mit.edu/ubuntu"
28 fi
29
30 if [ ! -d $aptcache ]; then mkdir $aptcache; fi