/[packages]/cauldron/mingw32-filesystem/current/SOURCES/mingw32-find-requires.sh
ViewVC logotype

Contents of /cauldron/mingw32-filesystem/current/SOURCES/mingw32-find-requires.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 67309 - (show annotations) (download) (as text)
Thu Mar 10 02:24:47 2011 UTC (11 years, 3 months ago) by ahmad
File MIME type: application/x-sh
File size: 705 byte(s)
imported package mingw32-filesystem
1 #!/bin/bash
2
3 # This script reads filenames from STDIN and outputs any relevant provides
4 # information that needs to be included in the package.
5
6 if [ "$1" ]
7 then
8 package_name="$1"
9 fi
10
11 [ -z "$OBJDUMP" ] && OBJDUMP=i686-pc-mingw32-objdump
12
13 # Get the list of files.
14
15 filelist=`sed "s/['\"]/\\\&/g"`
16
17 # Everything requires mingw32-filesystem of at least the current version
18 # and mingw32-runtime.
19 echo 'mingw32-filesystem >= @VERSION@'
20 echo 'mingw32-runtime'
21
22 dlls=$(echo $filelist | tr [:blank:] '\n' | grep -Ei '\.(dll|exe)$')
23
24 for f in $dlls; do
25 $OBJDUMP -p $f | grep 'DLL Name' | grep -Eo '[-._[:alnum:]]+\.dll' |
26 tr [:upper:] [:lower:] |
27 sed 's/\(.*\)/mingw32(\1)/'
28 done | sort -u

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.28