summaryrefslogtreecommitdiffstats
path: root/tools/checkusedmodules
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2005-12-18 12:19:48 +0000
committerMystery Man <unknown@mandriva.org>2005-12-18 12:19:48 +0000
commitde25dab468737adae2c3f5d45a8bd7eb3fdc83e6 (patch)
tree874cebd5583c01c90ba083411b4b495dfb517b9a /tools/checkusedmodules
parent575a03f47cd0de3af62c1b2f2685324943feb08a (diff)
downloaddrakx-backup-do-not-use-de25dab468737adae2c3f5d45a8bd7eb3fdc83e6.tar
drakx-backup-do-not-use-de25dab468737adae2c3f5d45a8bd7eb3fdc83e6.tar.gz
drakx-backup-do-not-use-de25dab468737adae2c3f5d45a8bd7eb3fdc83e6.tar.bz2
drakx-backup-do-not-use-de25dab468737adae2c3f5d45a8bd7eb3fdc83e6.tar.xz
drakx-backup-do-not-use-de25dab468737adae2c3f5d45a8bd7eb3fdc83e6.zip
This commit was manufactured by cvs2svn to create tag 'V10_4_6_1mdk'.V10_4_6_1mdk
Diffstat (limited to 'tools/checkusedmodules')
-rwxr-xr-xtools/checkusedmodules22
1 files changed, 0 insertions, 22 deletions
diff --git a/tools/checkusedmodules b/tools/checkusedmodules
deleted file mode 100755
index 433ed54d9..000000000
--- a/tools/checkusedmodules
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-# This script compares the perl modules used by the .pm files in perl-install
-# against the ones listed in share/list, to detect potential missing modules
-# (and potential run-time problems during the stage 2)
-
-cd ../perl-install || exit 1;
-
-# list of used .pm files
-find . -name '*.pm' -not -name b_dump_strings.pm -not -path ./interactive/http.pm | \
- xargs perl -lne '/^\s*(use|require)\s+([\w:]+)/ && print $2' | sort -u > /tmp/gi-used-pm
-
-# list of .pm files included in install
-perl -lne 'm{/(?:PERL_VERSION|ARCH-linux|vendor_perl/\*)/([\w/]+)\.pm$} and $_=$1, s,/,::,g, print' share/list > /tmp/gi-found-pm0
-find . -name blib -prune -o -name '*.pm' | perl -ne 's,^\./,,; s/\.pm$// or next; s,/,::,g; print' >> /tmp/gi-found-pm0
-
-# compute difference
-sort -u /tmp/gi-found-pm0 > /tmp/gi-found-pm
-diff -u /tmp/gi-{used,found}-pm | perl -lne 'BEGIN{print"Unpackaged modules:"} s/^-(?!-)/ / && print'
-
-# cleanup
-rm -f /tmp/gi-used-pm /tmp/gi-found-pm{,0}