Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ximi1970:Toolchains:MinGW:latest:win32
mingw32-filesystem
mingw32-find-provides.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mingw32-find-provides.sh of Package mingw32-filesystem
#!/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-w64-mingw32-objdump filelist=`sed "s/['\"]/\\\&/g"` dlls=$(echo $filelist | tr [:blank:] '\n' | grep '\.dll$') pcs=$(echo $filelist | tr [:blank:] '\n' | grep '\.pc$') implibs=$(echo $filelist | tr [:blank:] '\n' | grep '\.a$') for f in $dlls; do basename=`basename $f | tr [:upper:] [:lower:]` echo "mingw32($basename)" done for g in $pcs; do dirname=`dirname $g` PKG_CONFIG_PATH=$dirname i686-w64-mingw32-pkg-config --print-errors --print-provides $g | awk '{ print "mingw32(pkg:"$1")", $2, $3 }' done | sort -u for h in $implibs; do libname=`basename $h | sed 's#^lib##g' | sed 's#\.dll\.#\.#g' | sed 's#\.a##g'` echo "mingw32(lib:$libname)" done
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor