diff options
Diffstat (limited to 'scripts/debuginfo.prov')
-rwxr-xr-x[-rw-r--r--] | scripts/debuginfo.prov | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/scripts/debuginfo.prov b/scripts/debuginfo.prov index 4d99257a3..a8636c976 100644..100755 --- a/scripts/debuginfo.prov +++ b/scripts/debuginfo.prov @@ -1,12 +1,14 @@ #!/bin/sh -while read instfile ; do - case $instfile in - */usr/lib/debug/.build-id/*.debug) - if [ -f "$instfile" ] ; then - BUILDID=$(echo $instfile | sed -ne 's|.*/usr/lib/debug/.build-id/\([0-9a-f]*\)/\([0-9a-f]*\)\.debug|\1\2|p') - echo "debuginfo(build-id) = $BUILDID" - fi - ;; - esac +while read instfile; do + case "$instfile" in + */usr/lib/debug/.build-id/*.debug) + if [ -f "$instfile" ]; then + BUILDID=$(echo "$instfile" | sed -ne 's|.*/usr/lib/debug/.build-id/\([0-9a-f]\+\)/\([0-9a-f]\+\)\.debug|\1\2|p') + if [ -n "$BUILDID" ]; then + echo "debuginfo(build-id) = $BUILDID" + fi + fi + ;; + esac done |