3 # This script reads filenames from STDIN and outputs any relevant provides
4 # information that needs to be included in the package.
11 [ -z "$OBJDUMP" ] && OBJDUMP=i686-pc-mingw32-objdump
13 # Get the list of files.
15 filelist=`sed "s/['\"]/\\\&/g"`
17 # Everything requires mingw-filesystem of at least the current version
19 echo 'mingw-filesystem >= @VERSION@'
22 dlls=$(echo $filelist | tr [:blank:] '\n' | grep '\.dll')
25 $OBJDUMP -p $f | grep 'DLL Name' | grep -Eo '[[:alnum:]_]+\.dll' |
26 tr [:upper:] [:lower:] |
27 sed 's/\(.*\)/mingw(\1)/'