aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2015-05-08 15:11:43 +0200
committerKristian Lyngstol <kristian@bohemians.org>2015-05-08 15:11:43 +0200
commitaf9a801eb6c21c1c9087f1f8f910b98c4ad1ecc6 (patch)
tree016e6d2c4d909eb689cb7fe4aac8000697cef0f9 /tools
parent020db3676e8571f90b083e4dbbe620080a34950d (diff)
Update docs and dependency list
And a magic tool of nastyness to get that list from a functional system.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/deplist.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/deplist.sh b/tools/deplist.sh
new file mode 100755
index 0000000..cd2ecc0
--- /dev/null
+++ b/tools/deplist.sh
@@ -0,0 +1,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