]> git.donarmstrong.com Git - neurodebian.git/blob - tools/nd_gitbuild
Adjust path for new location of tools.
[neurodebian.git] / tools / nd_gitbuild
1 #!/bin/bash
2
3 . /home/cowbuilder/neurodebian.git/tools/nd_cmdsettings.sh
4
5 # common options
6 opts="--distribution $dist --aptcache $aptcache --buildplace $buildplace"
7
8 if [ -n "$3" ]; then
9   arch=$3
10 else
11   if [ "$(grep '^Architecture' debian/control | awk '{ print $2 }')" = "all" ]; then
12     echo "Arch 'all' package detected -- using amd64 system to build it"
13     arch="amd64"
14   else
15     arch="i386 amd64"
16   fi
17 fi
18
19
20 for a in $arch; do
21   echo "Building for $family $dist $a ..."
22   pdebuild --pbuilder cowbuilder --debbuildopts "-us -uc -i" \
23            --buildresult .. \
24            -- \
25            --basepath ${cowbuilderroot}/cow/${family}-${dist}-${a}.cow \
26            $opts
27 done