mirror of
https://github.com/qemu/qemu.git
synced 2024-12-04 17:23:39 +08:00
14 lines
260 B
Bash
14 lines
260 B
Bash
|
#!/bin/sh -e
|
||
|
#
|
||
|
# Helper script for the build process to apply entitlements
|
||
|
|
||
|
SRC="$1"
|
||
|
DST="$2"
|
||
|
ENTITLEMENT="$3"
|
||
|
|
||
|
trap 'rm "$DST.tmp"' exit
|
||
|
cp -af "$SRC" "$DST.tmp"
|
||
|
codesign --entitlements "$ENTITLEMENT" --force -s - "$DST.tmp"
|
||
|
mv "$DST.tmp" "$DST"
|
||
|
trap '' exit
|