X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tools%2Fnd_fetch_bdepends;h=5c674f8e1605e1fd5036e2188708b55e9d9890bb;hb=dcb046162ac6009c0643c2a8d6e7b9cd42e010db;hp=ebb5d922e717d0f278e91c15befb37732abc2405;hpb=ab789be0db85924134ece3143b2b6bcc761e878a;p=neurodebian.git diff --git a/tools/nd_fetch_bdepends b/tools/nd_fetch_bdepends index ebb5d92..5c674f8 100755 --- a/tools/nd_fetch_bdepends +++ b/tools/nd_fetch_bdepends @@ -1,7 +1,8 @@ #!/bin/bash -pkg=$1 -tdir=$2 +tdir=$1 + +shift # provide deb-src by uncommenting sed -i -e 's,^#deb-src,deb-src,g' /etc/apt/sources.list @@ -10,10 +11,14 @@ mkdir -p $tdir cd $tdir apt-get update apt-get install -y devscripts dctrl-tools -build-rdeps $pkg >| build-rdeps.output +rm -f build-rdeps.output +for pkg in "$@"; do + build-rdeps $pkg >> build-rdeps.output +done # Fetch all the sources grep -v -e '^[-A-Z]' -e '^ *$' build-rdeps.output \ + | sort | uniq \ | tee build-rdeps.list \ | while read pkg; do apt-get source --download-only $pkg