X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=filesystem%2Fmingw-find-requires.sh;h=6b9848af5c623b82b1c6b4492e15935126c7565f;hb=4b3e82cf20a9374a8554592ae99da7fcd54d76be;hp=1a63fc3233f293fcbbe55147fe991a464661c617;hpb=88677fd681a60a565fb236aabeabaf13435c3639;p=fedora-mingw.git diff --git a/filesystem/mingw-find-requires.sh b/filesystem/mingw-find-requires.sh index 1a63fc3..6b9848a 100755 --- a/filesystem/mingw-find-requires.sh +++ b/filesystem/mingw-find-requires.sh @@ -10,12 +10,19 @@ fi [ -z "$OBJDUMP" ] && OBJDUMP=i686-pc-mingw32-objdump +# Get the list of files. + filelist=`sed "s/['\"]/\\\&/g"` -dlls=$(echo $filelist | tr [:blank:] '\n' | grep '\.dll') +# Everything requires mingw-filesystem of at least the current version +# and mingw-runtime. +echo 'mingw-filesystem >= @VERSION@' +echo 'mingw-runtime' + +dlls=$(echo $filelist | tr [:blank:] '\n' | grep '\.dll$') for f in $dlls; do - $OBJDUMP -p $f | grep 'DLL Name' | grep -Eo '[[:alnum:]_]+\.dll' | + $OBJDUMP -p $f | grep 'DLL Name' | grep -Eo '[-._[:alnum:]]+\.dll' | tr [:upper:] [:lower:] | sed 's/\(.*\)/mingw(\1)/' done | sort -u