Add a script for zlib binary DLL installation
[mingw-xscripts.git] / mingw-list-dlls
blobca3e954a29dc7f4dbe77a6e59b55e452f92e9bb0
1 #!/bin/sh
3 source mingw-environment.sh
5 DLLS="$(find "$MINGW_PREFIX/bin" "$MINGW_PREFIX/lib" -name "*.dll")"
7 case "$1" in
8 -h|--help)
9 echo "Usage: $0 [--sh]"
10 exit
12 --sh)
13 cat <<EOF
14 #!/bin/sh
15 # This script was generated automatically.
16 # Edit the list below to suit your needs.
18 cp \\
19 $(echo "$DLLS" | sed -e 's/^/ /' -e 's/$/ \\/')
21 EOF
24 echo "$DLLS"
26 esac