summaryrefslogtreecommitdiff
path: root/solenv/bin
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-11-05 23:55:33 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2013-11-05 23:58:13 -0600
commitebeff1814cbecfba9bbeaeba8067b58f71703a39 (patch)
treee4537aea692f64ef8e3e8a98620b37c13ba5238a /solenv/bin
parent0aa9ced531b8d85ad067c1d156a9708eea628d78 (diff)
codesign: fix script to support spaces in the CODESIGN_IDENTITY
Change-Id: Ib30717518ff1d1291ba3a1fc7ba045e1fa29ad88 Reviewed-on: https://gerrit.libreoffice.org/6594 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'solenv/bin')
-rwxr-xr-xsolenv/bin/macosx-codesign-app-bundle12
1 files changed, 6 insertions, 6 deletions
diff --git a/solenv/bin/macosx-codesign-app-bundle b/solenv/bin/macosx-codesign-app-bundle
index e00b1b507760..5d65b2aefa5a 100755
--- a/solenv/bin/macosx-codesign-app-bundle
+++ b/solenv/bin/macosx-codesign-app-bundle
@@ -13,7 +13,7 @@ for V in \
BUILDDIR \
MACOSX_BUNDLE_IDENTIFIER \
MACOSX_CODESIGNING_IDENTITY; do
- if test -z `eval echo '$'$V`; then
+ if test -z "$(eval echo '$'$V)"; then
echo No '$'$V "environment variable! This should be run in a build only"
exit 1
fi
@@ -35,13 +35,13 @@ APP_BUNDLE=$1
# mentioned on the command line.
find $APP_BUNDLE \( -name '*.dylib' -or -name '*.so' \) ! -type l | \
-xargs codesign --verbose --prefix=$MACOSX_BUNDLE_IDENTIFIER. --sign $MACOSX_CODESIGNING_IDENTITY
+xargs codesign --verbose --prefix=$MACOSX_BUNDLE_IDENTIFIER. --sign "$MACOSX_CODESIGNING_IDENTITY"
find $APP_BUNDLE -name '*.dylib.*' ! -type l | \
while read dylib; do \
id=`basename "$dylib"`; \
id=`echo $id | sed -e 's/dylib.*/dylib/'`; \
- codesign --verbose --identifier=$MACOSX_BUNDLE_IDENTIFIER.$id --sign $MACOSX_CODESIGNING_IDENTITY "$dylib"; \
+ codesign --verbose --identifier=$MACOSX_BUNDLE_IDENTIFIER.$id --sign "$MACOSX_CODESIGNING_IDENTITY" "$dylib"; \
done
# The executables have already been signed by
@@ -56,7 +56,7 @@ done
for framework in `find $APP_BUNDLE -name '*.framework' -type d`; do \
for version in $framework/Versions/*; do \
- if test ! -L $version -a -d $version; then codesign --verbose --prefix=$MACOSX_BUNDLE_IDENTIFIER. --sign $MACOSX_CODESIGNING_IDENTITY $version; fi; \
+ if test ! -L $version -a -d $version; then codesign --verbose --prefix=$MACOSX_BUNDLE_IDENTIFIER. --sign "$MACOSX_CODESIGNING_IDENTITY" $version; fi; \
done; \
done
@@ -68,10 +68,10 @@ done
#
# At this stage we also attach the entitlements in the sandboxing case
-if test $ENABLE_MACOSX_SANDBOX = TRUE; then
+if test "$ENABLE_MACOSX_SANDBOX" = "TRUE"; then
entitlements="--entitlements $BUILDDIR/lo.xcent"
fi
-codesign --force --verbose --sign $MACOSX_CODESIGNING_IDENTITY $entitlements $APP_BUNDLE
+codesign --force --verbose --sign "$MACOSX_CODESIGNING_IDENTITY" $entitlements $APP_BUNDLE
exit 0