aboutsummaryrefslogtreecommitdiffstats
path: root/find-debuginfo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'find-debuginfo.sh')
-rwxr-xr-xfind-debuginfo.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/find-debuginfo.sh b/find-debuginfo.sh
index fec5d62..477f0e3 100755
--- a/find-debuginfo.sh
+++ b/find-debuginfo.sh
@@ -100,8 +100,8 @@ strip_to_debug()
$strip_g && case "$(file -bi "$2")" in
application/x-sharedlib*) g=-g ;;
esac
- eu-strip --remove-comment $g -f "$1" "$2" || exit
- chmod 444 "$1" || exit
+ eu-strip --remove-comment $g $([ -n "$DISABLE_DEBUG" ] || echo -f "$1") "$2" || exit
+ [ -n "$DISABLE_DEBUG" ] || chmod 444 "$1" || exit
}
# Make a relative symlink to $1 called $3$2
@@ -194,6 +194,7 @@ xargs --no-run-if-empty stat -c '%h %D_%i %n' |
while read nlinks inum f; do
[[ -n "$EXCLUDE_REGEXP" ]] && grep -E -q "$EXCLUDE_REGEXP" <<< "$f" && \
continue
+ [ -n "$DISABLE_DEBUG" ] && strip_to_debug "" "$f" && continue
get_debugfn "$f"
[ -f "${debugfn}" ] && continue