index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Eli Schwartz <eschwartz@archlinux.org> | 2017-10-30 14:35:23 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2017-12-07 15:54:16 +1000 |
commit | 8bec63bf92d8dd028aa88dbd5109c314cdb9ebea (patch) | |
tree | d46d7122ed1295d2e51d3092406aeee45fd93a1b /scripts/libmakepkg/tidy | |
parent | 259d521e37c4cbcdbdc074e6cf832d233f2a9528 (diff) |
-rw-r--r-- | scripts/libmakepkg/tidy/strip.sh.in | 7 |
diff --git a/scripts/libmakepkg/tidy/strip.sh.in b/scripts/libmakepkg/tidy/strip.sh.in index e88bde78..8a1d6096 100644 --- a/scripts/libmakepkg/tidy/strip.sh.in +++ b/scripts/libmakepkg/tidy/strip.sh.in @@ -57,15 +57,12 @@ strip_file() { # copy source files to debug directory local f t - while read -r f; do - t=${f/"$srcdir"/$dbgsrc} + while read -r t; do + f=${t/$dbgsrc/"$srcdir"} mkdir -p "${t%/*}" cp -- "$f" "$t" done < <(source_files "$binary") - # adjust debug symbols to point at sources - debugedit -b "${srcdir}" -d /usr/src/debug/ -i "$binary" &> /dev/null - # copy debug symbols to debug directory mkdir -p "$dbgdir/${binary%/*}" objcopy --only-keep-debug "$binary" "$dbgdir/$binary.debug" |