File indexing completed on 2024-04-06 12:31:46
0001
0002
0003 pkgsel="no Ig_Applications Examples QPlotter QpAdapters Qwt AIDA qxt LessTif"
0004 confp="--group=$UTILSDIR/group-purpose.conf --rename=$UTILSDIR/rename-origin.conf"
0005 confo="--group=$UTILSDIR/group-origin.conf --rename=$UTILSDIR/rename-origin.conf"
0006 globs=
0007
0008 grep 'source dependency' $DEPDIR/log | \
0009 sed 's/^ *//; s/: source dependency on//; s/ via.*//;' | \
0010 egrep -v '<.*>' | \
0011 sort | uniq -c > $DEPDIR/xdeps.inc
0012
0013 grep 'source dependency' $DEPDIR/log | \
0014 sed 's/^ *//; s/: source dependency on//;' | \
0015 egrep -v '<.*>' | \
0016 sort | uniq -c > $DEPDIR/xdeps.incdetail
0017
0018 grep '^binary .* found in ' $DEPDIR/log | \
0019 sed 's/^binary /s%/; s/ found in /($| )%/; s/$/$1%go;/; s/+/\\+/g' > /tmp/$$.perl
0020
0021 grep '^.*: .*: resolved from ' $DEPDIR/log | \
0022 sed 's/: .*: resolved from / /;' | \
0023 perl -ne '/^(\S+)\s+(\S+(,\s+\S+)*)$/; map { print "$1 $_\n" } split(/,\s+/,$2)' \
0024 > /tmp/$$.lib-raw
0025
0026 sort < /tmp/$$.lib-raw | uniq -c > $DEPDIR/xdeps.lib-raw
0027 perl -p /tmp/$$.perl < /tmp/$$.lib-raw | egrep -v '<.*>' | sort | uniq -c > $DEPDIR/xdeps.lib
0028
0029 xmerge $confp $DEPDIR/xdeps.inc $DEPDIR/xdeps.lib $pkgsel $globs > $DEPDIR/xdeps.all
0030 xmerge $confp --side-by-side $DEPDIR/xdeps.inc $DEPDIR/xdeps.lib $pkgsel $globs> $DEPDIR/xdeps-purpose.ps
0031 xmerge $confo --side-by-side $DEPDIR/xdeps.inc $DEPDIR/xdeps.lib $pkgsel $globs> $DEPDIR/xdeps-origin.ps
0032
0033 (echo 'h3.page-break { page-break-before: always; }'
0034 echo '@html2ps {'
0035 echo ' margin { left: 1cm; right 1cm; top: 1cm; bottom: 1cm }'
0036 echo ' font { arial { names: "Helvetica Helvetica-Oblique Helvetica-Bold Helvetica-BoldOblique" } }'
0037 echo '}'
0038 echo 'ol { font-family: arial, helvetica, sans-serif; font-size: 7pt; }'
0039 echo 'table { font-family: arial, helvetica, sans-serif; font-size: 7pt; }'
0040 echo 'td { font-family: arial, helvetica, sans-serif; font-size: 7pt; text-align: center; }'
0041 echo 'th { font-family: arial, helvetica, sans-serif; font-size: 7pt; font-weight: normal; }'
0042 ) > $DEPDIR/xdeps.css
0043 (echo "<HTML><TITLE>$APP Dependency Statistics</TITLE>"
0044 echo '<LINK REL="stylesheet" href="xdeps.css" type="text/css">'
0045 echo '<BODY>'
0046 xmerge $confp --html $DEPDIR/xdeps.inc $DEPDIR/xdeps.lib $pkgsel $globs
0047 echo '</BODY></HTML>') > $DEPDIR/xdeps.html
0048
0049
0050 rm -f /tmp/$$.perl /tmp/$$.lib-raw