]> git.donarmstrong.com Git - neurodebian.git/blob - tools/nd_test_bdepends
initial version of scripts for nd_test_bdepends
[neurodebian.git] / tools / nd_test_bdepends
1 #!/bin/bash
2
3 # no undefined
4 set -u
5
6 CMD=
7 #echo
8
9 family=$1
10 dist=$2
11 arch=$3      # limit to 1 for now
12
13 dscfile=$4
14
15 pkg=${dscfile%_*}
16
17 #? TODO -- should be a parameter as well?
18
19 testdir=$PWD/$pkg-$arch.test-bdepends
20 bindir=$testdir/bin
21 debdir=$testdir/debs
22 srcdir=$testdir/srcs
23
24 echo "I: Building the new package for $pkg"
25
26 mkdir -p $debdir $srcdir $bindir
27 $CMD nd_build $family $dist $arch $dscfile --buildresult=$debdir
28
29
30 echo "I: Fetching all bdepends for $pkg in $family $dist under $arch"
31 # need first to provide the necessary scripts out there
32 cp -p `which nd_fetch_bdepends` $bindir
33 $CMD nd_execute $family $dist $arch --bindmounts $testdir $bindir/nd_fetch_bdepends $pkg $srcdir
34
35 # 3 -- go through all bdepends and build them with old (from repo) and new (built) version