Let debuginfo packages provide the build-id
[platform/upstream/rpm.git] / scripts / debuginfo.prov
1 #!/bin/sh
2
3 while read instfile ; do
4     case $instfile in
5         */usr/lib/debug/.build-id/*.debug)
6             if [ -f "$instfile" ] ; then
7                 BUILDID=$(echo $instfile | sed -ne 's|.*/usr/lib/debug/.build-id/\([0-9a-f]*\)/\([0-9a-f]*\)\.debug|\1\2|p')
8                 echo "debuginfo(build-id) = $BUILDID"
9             fi
10             ;;
11     esac
12 done