--- /dev/null
+#!/bin/bash
+
+. /home/cowbuilder/bin/nd_cmdsettings.sh
+
+# common options
+opts="--distribution $dist --debootstrap debootstrap --aptcache $aptcache"
+
+
+for a in i386 amd64; do
+ echo "Building $a base path..."
+ if [ "${family:0:3}" = "nd+" ]; then
+ echo "Including NeuroDebian repository..."
+ cowbuilder --create --basepath /home/cowbuilder/cow/${family}-${dist}-${a}.cow $opts \
+ --components "$components" \
+ --mirror "$mirror" \
+ --debootstrapopts --arch --debootstrapopts $a \
+ --othermirror "deb http://neuro.debian.net/debian $dist main contrib non-free"
+ else
+ cowbuilder --create --basepath /home/cowbuilder/cow/${family}-${dist}-${a}.cow $opts \
+ --components "$components" \
+ --mirror "$mirror" \
+ --debootstrapopts --arch --debootstrapopts $a
+ fi
+done