target/arm: Implement SVE2 integer absolute difference and accumulate
[qemu/ar7.git] / scripts / entitlement.sh
blobf7aaaf27662ef2fe345303a28964cec457e2a06f
1 #!/bin/sh -e
3 # Helper script for the build process to apply entitlements
5 in_place=:
6 if [ "$1" = --install ]; then
7 shift
8 in_place=false
9 fi
11 SRC="$1"
12 DST="$2"
13 ENTITLEMENT="$3"
15 if $in_place; then
16 trap 'rm "$DST.tmp"' exit
17 cp -af "$SRC" "$DST.tmp"
18 SRC="$DST.tmp"
19 else
20 cd "$MESON_INSTALL_DESTDIR_PREFIX"
23 codesign --entitlements "$ENTITLEMENT" --force -s - "$SRC"
24 mv -f "$SRC" "$DST"
25 trap '' exit