1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-20 06:10:06 +02:00
audacity/scripts/ci/macos/generate_dsym.sh
2021-06-22 08:29:55 -07:00

21 lines
484 B
Bash

#!/usr/bin/env bash
set -xe
function extractDSym()
{
local lib=$1
local libfile=$(basename $lib)
local libname="${libfile%.*}"
local targetdir=$(dirname $lib)
if [[ ! -L "$lib" && "$lib" != "{}" && $lib != *"dSYM"* ]]; then
echo "Extracting dSYMs from ${libfile} to ${libname}.dSYM"
dsymutil "$lib" -o "${targetdir}/${libname}.dSYM"
fi
}
export -f extractDSym
find $CONAN_USER_HOME -name "*.dylib" | xargs -I {} bash -c 'extractDSym "{}"'