X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=filesystem%2Fmingw32-find-requires.sh;fp=filesystem%2Fmingw32-find-requires.sh;h=0000000000000000000000000000000000000000;hb=81072cfb0c17f8a779a152591976004f8cc60613;hp=ff8bb39a904ac462d0c60191e8df4649dce2e89c;hpb=0f71f9192dfbd037e4b56e32a95df21ac646d89d;p=fedora-mingw.git diff --git a/filesystem/mingw32-find-requires.sh b/filesystem/mingw32-find-requires.sh deleted file mode 100755 index ff8bb39..0000000 --- a/filesystem/mingw32-find-requires.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -# This script reads filenames from STDIN and outputs any relevant provides -# information that needs to be included in the package. - -if [ "$1" ] -then - package_name="$1" -fi - -[ -z "$OBJDUMP" ] && OBJDUMP=i686-pc-mingw32-objdump - -# Get the list of files. - -filelist=`sed "s/['\"]/\\\&/g"` - -# Everything requires mingw32-filesystem of at least the current version -# and mingw32-runtime. -echo 'mingw32-filesystem >= @VERSION@' -echo 'mingw32-runtime' - -dlls=$(echo $filelist | tr [:blank:] '\n' | grep -Ei '\.(dll|exe)$') - -for f in $dlls; do - $OBJDUMP -p $f | grep 'DLL Name' | grep -Eo '[-._[:alnum:]]+\.dll' | - tr [:upper:] [:lower:] | - sed 's/\(.*\)/mingw32(\1)/' -done | sort -u