"Fossies" - the Fresh Open Source Software Archive 
Member "unipkg-0.6.5/unipkg-depwrap" (16 Dec 2005, 692 Bytes) of package /linux/privat/old/unipkg-0.6.5.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 #!/bin/sh
2
3 if [ -z "$1" ]; then
4 echo -e "Usage: $0 packagename\n"
5
6 echo "This script wrapper detects missing lib dependencies or missing files of packages."
7 echo "Uses POSIX-compliant shell, test, sort, uniq, ldd from libc."
8 exit 1;
9 fi;
10
11 PKG=$1
12
13 echo "Checking '$PKG'..."
14 unipkg listfiles "$PKG" | awk \
15 '{
16 if (/^[ ]*Package:.*/) {
17 print "\n---", $2, "---"
18 } else if (!(/^[-+]*$/)) {
19 if (system("[ -e "$0" ]")) {
20 print "File not found:", $0
21 }
22 lddcheck = "xargs ldd 2> /dev/null"
23 print $0 |& lddcheck
24 close(lddcheck, "to")
25
26 while ((lddcheck |& getline) > 0)
27 if (/.*not found.*/) {
28 print "Broken library:", $1
29 }
30 close(lddcheck)
31 }
32 }'