5 Script to log into a particular COW and execute some command.
10 nd_execute <family> <codename> <arch> [cowbuilderopts] command
24 if [ -z "$family" ]; then
25 echo "You need to provide a distribution family ('debian', 'ubuntu'); prefix with 'nd+' to enable the NeuroDebian repository."
29 if [ -z "$dist" ]; then
30 echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
34 if [ -z "$arch" ]; then
35 echo "You need to provide an architecture (e.g. 'i386', 'amd64')."
39 . /etc/neurodebian/cmdsettings.sh
41 shift; shift; shift; # get rid of those from future use of $@
44 opts="--distribution $dist --aptcache $aptcache --buildplace $buildplace"
47 #if [ -n "bmdir" ]; then
48 # options="$opts --bindmounts $bmdir"
53 cowbuilder --execute \
54 --basepath ${cowbuilderroot}/cow/${family}-${dist}-${arch}.cow \