8 if [ -z "$family" ]; then
9 echo "You need to provide a distribution family ('debian', 'ubuntu'); prefix with 'nd+' to enable the NeuroDebian repository."
13 if [ -z "$dist" ]; then
14 echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
19 . /home/neurodebian/neurodebian.git/tools/nd_cmdsettings.sh
22 opts="--distribution $dist --debootstrap debootstrap --aptcache $aptcache"
25 for a in i386 amd64; do
26 echo "Building $a base path..."
27 if [ -d ${cowbuilderroot}/cow/${family}-${dist}-${a}.cow ]; then
28 echo "${cowbuilderroot}/cow/${family}-${dist}-${a}.cow exists. Ignoring arch."
31 if [ "${family:0:3}" = "nd+" ]; then
32 echo "Including NeuroDebian repository..."
33 cowbuilder --create --basepath ${cowbuilderroot}/cow/${family}-${dist}-${a}.cow $opts \
34 --components "$components" \
36 --debootstrapopts --arch --debootstrapopts $a \
37 --othermirror "deb http://neuro.debian.net/debian $dist main contrib non-free"
39 cowbuilder --create --basepath ${cowbuilderroot}/cow/${family}-${dist}-${a}.cow $opts \
40 --components "$components" \
42 --debootstrapopts --arch --debootstrapopts $a