X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=mingw64-filesystem%2Fmingw64-find-provides.sh;fp=mingw64-filesystem%2Fmingw64-find-provides.sh;h=527d184336f6b83aad699bb361f36827b7f7cbc6;hb=e512d7de08f15b1e3a88b24f85a698928ac1ea67;hp=0000000000000000000000000000000000000000;hpb=4fd0923d98a237529254d01fa773f1d5d0c73cad;p=fedora-mingw.git diff --git a/mingw64-filesystem/mingw64-find-provides.sh b/mingw64-filesystem/mingw64-find-provides.sh new file mode 100755 index 0000000..527d184 --- /dev/null +++ b/mingw64-filesystem/mingw64-find-provides.sh @@ -0,0 +1,20 @@ +#!/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=x86_64-pc-mingw32-objdump + +filelist=`sed "s/['\"]/\\\&/g"` + +dlls=$(echo $filelist | tr [:blank:] '\n' | grep '\.dll$') + +for f in $dlls; do + basename=`basename $f | tr [:upper:] [:lower:]` + echo "mingw64($basename)" +done