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