Add a README
[mingw-xscripts.git] / mingw-list-dlls
blobec91459ff1d02e04ec14b436919a37ed89a99d06
1 #!/bin/sh
3 . 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