3 tempdir
=`mktemp -d 2> /dev/null` || tempdir
=/tmp
/tmpdir$$
4 trap "rm -rf $tempdir" 0 1 2 5 15
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