fix: _brightness.sh - find brighness files with '*video*' path (multiple files)
[cmdllinux.git] / buildroot / _pkg / _instpkg / develmanage / getdeps.sh
blob1750cf9044a6893cb2d8bc02102feffaef9190fb
1 #! /bin/sh
3 tempdir=`mktemp -d 2> /dev/null` || tempdir=/tmp/tmpdir$$
4 trap "rm -rf $tempdir" 0 1 2 5 15
6 [ -z "$1" ] && exit 1
8 basedep(){
9 while read line; do grep " $line " /var/lib/instpkg/depends.local.data; done < $tempdir/base
12 grep " $1 " /var/lib/instpkg/depends.local.data | cut -d " " -f 1 > $tempdir/base
13 touch $tempdir/base.old
15 while ! cmp $tempdir/base $tempdir/base.old &> /dev/null; do
16 basedep | cut -d " " -f 1 > $tempdir/expand
17 cat $tempdir/base >> $tempdir/expand
18 cp $tempdir/base $tempdir/base.old
19 sort -u $tempdir/expand > $tempdir/base
20 echo -n > $tempdir/expand
21 done
23 cat $tempdir/base