From 59a52a16784461738f0f10edb3544ff8d8514f1e Mon Sep 17 00:00:00 2001 From: mconintet Date: Thu, 19 May 2016 12:17:22 +0800 Subject: [PATCH] Fix file path File path is not right if use this project as submodule like case in this project https://github.com/x2on/libssh2-for-iOS --- create-openssl-framework.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/create-openssl-framework.sh b/create-openssl-framework.sh index 84c90a3..1f703db 100755 --- a/create-openssl-framework.sh +++ b/create-openssl-framework.sh @@ -22,5 +22,7 @@ echo "Creating $FWNAME.framework" mkdir -p $FWNAME.framework/Headers libtool -no_warning_for_no_symbols $LIBTOOL_FLAGS -o $FWNAME.framework/$FWNAME lib/libcrypto.a lib/libssl.a cp -r include/$FWNAME/* $FWNAME.framework/Headers/ -cp "OpenSSL-for-iOS/OpenSSL-for-iOS-Info.plist" $FWNAME.framework/Info.plist + +DIR="$(cd "$(dirname "$0")" && pwd)" +cp $DIR/"OpenSSL-for-iOS/OpenSSL-for-iOS-Info.plist" $FWNAME.framework/Info.plist echo "Created $FWNAME.framework"