[Libreoffice-commits] core.git: solenv/bin

Norbert Thiebaud nthiebaud at gmail.com
Wed Nov 6 06:58:33 CET 2013


 solenv/bin/macosx-codesign-app-bundle |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit ebeff1814cbecfba9bbeaeba8067b58f71703a39
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Tue Nov 5 23:55:33 2013 -0600

    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 at gmail.com>
    Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>

diff --git a/solenv/bin/macosx-codesign-app-bundle b/solenv/bin/macosx-codesign-app-bundle
index e00b1b5..5d65b2a 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


More information about the Libreoffice-commits mailing list