summaryrefslogtreecommitdiff
path: root/scripts/debuginfo.prov
diff options
context:
space:
mode:
authorbiao716.wang <biao716.wang@samsung.com>2021-01-05 14:51:28 +0900
committerbiao716.wang <biao716.wang@samsung.com>2021-01-05 14:51:28 +0900
commit9de33a8a7cd9eae05c3c1df4b2c0e1e4cd2bd40a (patch)
tree03067d36d530c3eeb623e601b0c12a98f744376d /scripts/debuginfo.prov
parent287097d4d8079b4485870c08cf5675b0bdd37ed9 (diff)
downloadrpm-9de33a8a7cd9eae05c3c1df4b2c0e1e4cd2bd40a.tar.gz
rpm-9de33a8a7cd9eae05c3c1df4b2c0e1e4cd2bd40a.tar.bz2
rpm-9de33a8a7cd9eae05c3c1df4b2c0e1e4cd2bd40a.zip
Change-Id: Iab5438d6e4d45c937b191c03e9ef5dd3fad165c8 Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Diffstat (limited to 'scripts/debuginfo.prov')
-rwxr-xr-x[-rw-r--r--]scripts/debuginfo.prov20
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