Rename base packages mingw -> mingw32.
[fedora-mingw.git] / filesystem / mingw32-find-requires.sh
similarity index 62%
rename from filesystem/mingw-find-requires.sh
rename to filesystem/mingw32-find-requires.sh
index 6b9848a..ff8bb39 100755 (executable)
@@ -14,15 +14,15 @@ fi
 
 filelist=`sed "s/['\"]/\\\&/g"`
 
-# Everything requires mingw-filesystem of at least the current version
-# and mingw-runtime.
-echo 'mingw-filesystem >= @VERSION@'
-echo 'mingw-runtime'
+# 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 '\.dll$')
+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/\(.*\)/mingw(\1)/'
+        sed 's/\(.*\)/mingw32(\1)/'
 done | sort -u