#!/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} 8B+WQ vu-m$li@n8<ӷz!5yf)L)C߯ <Y @@:yȷ(.t^_̆VyDfה:\NR2$`A KQs{H2PSաv^@ JpHv3n2gjw4o~<30Vr!^_j ޝ6n3R9N:yZΥ;E2tE?&8_QN[ 7bPU( .l*C-#+?iWϳ6]ƇSnl|b^%{heS\Ǔ^ɺNPG϶$;P(G >6a MXΣqJix$(=L$Tɮ*Y|Y9ܥ!*W;h/ud,Mb}s(t!4fdiY;JV_KZk^>nzzR dzK.e1GjGFhGE=ogϬe@u4TnB@Z8`%`2 gr~q=53D;}rwW 4%uePϗR?`dT(}\Iɲ yiuMxtG,maZ/+R@+ [6`Xk!|d{c&HEahI UavV]-1LɄf seVOm"luGÌ+Lml#UjCbEwPR#e,֏/_ke>!rx/ R6;me3t̥0ɠr-!g|gZG34غM=>O 3_>we ?a
p?c УON$H&eoI;"bw6Br4xFXG\HBH©8"Hض[J{WRP{go-jבRMC˥Ie+gQޮ9SXj?`-Pт:XH5 i6ݸVbK
9>u^ ̚y[kK0N*ڗ&h`(×X ?ߛDC;3y(pprag&趵qd, ifܗXQd/JiՖ`MdX$ڕi|R0\EC3sBdQw@JVOӉ䪀zRE[]&^9߁ta` z~0 HT:6}[+ G#n$G璦d@MMoZ<5G