repo.or.cz
/
qemu
/
ar7.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
qemu-nbd: Use SOMAXCONN for socket listen() backlog
[qemu/ar7.git]
/
scripts
/
entitlement.sh
blob
c540fa6435fb6a151e7d2400b28d27bd8f08571b
1
#!/bin/sh -e
2
#
3
# Helper script for the build process to apply entitlements
4
5
SRC
=
"
$1
"
6
DST
=
"
$2
"
7
ENTITLEMENT
=
"
$3
"
8
9
trap
'rm "
$DST
.tmp"'
exit
10
cp
-af
"
$SRC
"
"
$DST
.tmp"
11
codesign
--entitlements
"
$ENTITLEMENT
"
--force -s
-
"
$DST
.tmp"
12
mv
"
$DST
.tmp"
"
$DST
"
13
trap
''
exit