5 Script to build a source package in one of the available cowbuilders.
10 nd_build <family> <codename> [arch] <dsc file> [cowbuilder options]
16 Build for a single specific arch:
18 nd_build nd+debian lenny i386 someting.dsc
21 Build for all archs (will just build once for arch 'all'):
23 nd_build ubuntu jaunty something.dsc
26 Build the same way but don't put results in current dir:
28 nd_build debian sid something.dsc --buildresult to-upload/
34 . /home/cowbuilder/bin/nd_cmdsettings.sh
37 opts="--distribution $dist --aptcache $aptcache --buildplace $buildplace"
40 echo "You need to provide a .dsc file"
44 if [ ! "$3" = "${3%*.dsc}" ]; then
46 # must already be the dsc file, hence no arch info given
47 if [ "$(grep '^Architecture' $dscfile | awk '{ print $2 }')" = "all" ]; then
48 echo "Arch 'all' package detected -- using amd64 system to build it"
55 # must be arch given and dsc as 4th
58 if [ -z "$dscfile" ]; then
59 echo "You need to provide a .dsc file"
62 shift; shift; shift; shift
66 echo "Building for $family $dist $a ..."
67 cowbuilder --build $dscfile \
68 --basepath ${cowbuilderroot}/cow/${family}-${dist}-${a}.cow \