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')."
18 . /etc/neurodebian/cmdsettings.sh
21 opts="--distribution $dist --aptcache $aptcache --buildplace $buildplace"
26 if [ "$(grep '^Architecture' debian/control | awk '{ print $2 }')" = "all" ]; then
27 echo "Arch 'all' package detected -- using amd64 system to build it"
36 echo "Building for $family $dist $a ..."
37 pdebuild --pbuilder cowbuilder --debbuildopts "-us -uc -i" \
40 --basepath ${cowbuilderroot}/cow/${family}-${dist}-${a}.cow \