This commit is contained in:
2021-02-18 10:42:34 +07:00
parent 26c40f9a4c
commit 852129aec7
36 changed files with 6333 additions and 0 deletions

22
data/ldid_wrapper Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh
set -e
ldid=ldid
for last; do
ldid="$ldid $old"
old="$last"
done
archs="$(lipo -info "$last")"
if [ -z "$(echo $archs | grep are:)" ]; then
$ldid "$last"
else
archs="$(echo $archs | sed 's/^.*are: //')"
temp=$(mktemp -d /tmp/ldid_wrapper.XXXXX)
for arch in $archs; do
lipo -thin $arch -output $temp/$arch "$last"
$ldid $temp/$arch
done
lipo -create -output "$last" $temp/*
rm -rf $temp
fi