csomh / source-git / rpm

Forked from source-git/rpm 4 years ago
Clone
2ff057
#!/bin/sh
2ff057
2ff057
while read instfile; do
2ff057
  case "$instfile" in
2ff057
    */usr/lib/debug/.build-id/*.debug)
2ff057
      if [ -f "$instfile" ]; then
2ff057
        BUILDID=$(echo "$instfile" | sed -ne 's|.*/usr/lib/debug/.build-id/\([0-9a-f]\+\)/\([0-9a-f]\+\)\.debug|\1\2|p')
2ff057
        if [ -n "$BUILDID" ]; then
2ff057
          echo "debuginfo(build-id) = $BUILDID"
2ff057
        fi
2ff057
      fi
2ff057
      ;;
2ff057
  esac
2ff057
done