Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP6
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. target="mingw32" host="i686-w64-mingw32" if [ -n "$1" ]; then package_name="$1" fi [ -z "$OBJDUMP" ] && OBJDUMP="$host-objdump" filelist="/tmp/$target-find-provides.$$" sed "s/['\"]/\\\&/g" >"$filelist" dlls=$(grep '\.dll$' "$filelist") pcs=$(grep '\.pc$' "$filelist") libs=$(grep '\.a$' "$filelist") for f in $dlls; do [ ! -f "$f" ] && continue basename=`basename "$f" | tr "[:upper:]" "[:lower:]"` echo "$target($basename)" done for g in $pcs; do [ ! -f "$g" ] && continue PKG_CONFIG_PATH="${g%/*}" "$host-pkg-config" --print-errors --print-provides "$g" | awk '{ print "'"$target"'(pkg:"$1")", $2, $3 }' done | sort -u for h in $libs; do [ ! -f "$h" ] && continue libname=`basename "$h" | sed 's#^lib##g' | sed 's#\.dll\.#\.#g' | sed 's#\.a##g'` echo "$target(lib:$libname)" done rm "$filelist"
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