1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 00:51:21 +01:00
Files
audacity/scripts/ci/linux/split_debug_symbols.sh
Sol Fisher Romanoff f395687c9f Change bash scripts to be POSIX-compatible
some Unix-like operating systems, namely Alpine, don't come with bash
preinstalled.
scripts in the lib-src/ directory were left untouched.

Signed-off-by: Sol Fisher Romanoff <sol@solfisher.com>
2021-12-02 10:13:12 +02:00

9 lines
228 B
Bash

#!/bin/sh
set -x
objcopy --only-keep-debug --compress-debug-section=zlib "${1}" "${1}.debug"
if [ -f "${1}.debug" ]; then
objcopy --strip-debug --strip-unneeded "${1}"
objcopy --add-gnu-debuglink="${1}.debug" "${1}"
fi