blob: cd2ecc02c2cc1ff1c1668419d3be9a46a515bcf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
# Generate a dependency list for debian packages needed to work
#
# This is ... somewhat extensive. And a good incentive for people to clean
# up their mess.
(
cat <<_EOF_
use lib '../include';
use lib '../web/streamlib';
_EOF_
find ../ -name '*pl' -exec egrep '^use ' {} \; | sort | uniq
cat <<_EOF_
foreach my \$key (keys %INC) {
if (\$INC{\$key} =~ m/^\./) {
next;
}
print \$INC{\$key} . "\n";
}
_EOF_
) | perl 2>/dev/null | xargs realpath | xargs dpkg -S | awk '{print $1}' | sed 's/:$//' | sort | uniq
|