8 Usage: $0 [--verbose] [--format={raw|shell|graph}] [--] {file.dll|file.exe} ...
15 while test $# != 0; do
18 case "$(echo "$1" | cut -d= -f2)" in
20 shell
) format
=shell
;;
21 graph
) format
=graph
;;
40 . mingw-environment.sh
42 OBJDUMP
=${OBJDUMP:-$TARGET-objdump}
43 ALL_DLLS
="$(find "$MINGW_PREFIX/bin
" "$MINGW_PREFIX/lib
" -name "*.dll
")"
46 $OBJDUMP -x -- "$1" |
grep 'DLL Name:' | cut
-d: -f2
52 # $3 -> print full filename
54 if test "$2" -ge 0; then
55 printf '%*s%s\n' $
(expr "$2" \
* 2) '' \
56 "$(test "$3" = 1 && echo "$1" || echo "$
(basename -- "$1")")"
59 for dep
in $
(dump_dlls
"$1"); do
60 installed
="$(echo "$ALL_DLLS" | grep "$dep")"
62 if test "$installed"; then
63 list_deps
"$installed" $
(expr "$2" + 1) $3
64 elif test "$verbose"; then
65 echo "'$(basename -- "$1")' needs '$dep'," \
66 "which is not installed." >&2
74 # This script was generated by $(basename $0).
75 # Edit the list below to suit your needs.
78 $(sed -e 's/^/ /' -e 's/$/ \\/')
83 # "raw" format defaults
97 while test $# != 0; do
98 list_deps
"$1" $initindent $longnames
103 sed 's/^\s\+//' |
sort |
uniq
106 sed 's/^\s\+//' |
sort |
uniq | shellscriptify