Fixed code signing release frameworks
authorSam Lantinga <slouken@libsdl.org>
Mon, 07 Jul 2014 23:40:10 -0700
changeset 8995 d095e572e0d5
parent 8994 b80b0595975c
child 8996 b8147002c991
Fixed code signing release frameworks
Xcode/SDL/pkg-support/codesign-frameworks.sh
--- a/Xcode/SDL/pkg-support/codesign-frameworks.sh	Mon Jul 07 23:33:57 2014 -0700
+++ b/Xcode/SDL/pkg-support/codesign-frameworks.sh	Mon Jul 07 23:40:10 2014 -0700
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# WARNING: You may have to run Clean in Xcode after changing CODE_SIGN_IDENTITY! 
+# WARNING: You may have to run Clean in Xcode after changing CODE_SIGN_IDENTITY!
 
 # Verify that $CODE_SIGN_IDENTITY is set
 if [ -z "$CODE_SIGN_IDENTITY" ] ; then
@@ -14,20 +14,16 @@
     fi
 fi
 
-SAVEIFS=$IFS
-IFS=$(echo -en "\n\b")
-
 FRAMEWORK_DIR="${TARGET_BUILD_DIR}"
 
 # Loop through all frameworks
-FRAMEWORKS=`find "${FRAMEWORK_DIR}" -type d -name "*.framework" | sed -e "s/\(.*\)/\1\/Versions\/A\//"`
+FRAMEWORKS=`find "${FRAMEWORK_DIR}" -type d -name "*.framework"`
 RESULT=$?
 if [[ $RESULT != 0 ]] ; then
     exit 1
 fi
 
-echo "Found:"
-echo "${FRAMEWORKS}"
+echo "Found: ${FRAMEWORKS}"
 
 for FRAMEWORK in $FRAMEWORKS;
 do
@@ -38,6 +34,3 @@
         exit 1
     fi
 done
-
-# restore $IFS
-IFS=$SAVEIFS