From af9a801eb6c21c1c9087f1f8f910b98c4ad1ecc6 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Fri, 8 May 2015 15:11:43 +0200 Subject: Update docs and dependency list And a magic tool of nastyness to get that list from a functional system. --- tools/deplist.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 tools/deplist.sh (limited to 'tools') 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 -- cgit v1.2.3