20 lines
482 B
Bash
Executable File
20 lines
482 B
Bash
Executable File
#!/bin/sh
|
|
|
|
FWNAME=openssl
|
|
|
|
if [ ! -d lib ]; then
|
|
echo "Please run build-libssl.sh first!"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -d $FWNAME.framework ]; then
|
|
echo "Removing previous $FWNAME.framework copy"
|
|
rm -rf $FWNAME.framework
|
|
fi
|
|
|
|
echo "Creating $FWNAME.framework"
|
|
mkdir -p $FWNAME.framework/Headers
|
|
libtool -no_warning_for_no_symbols -static -o $FWNAME.framework/$FWNAME lib/libcrypto.a lib/libssl.a
|
|
cp -r include/$FWNAME/* $FWNAME.framework/Headers/
|
|
echo "Created $FWNAME.framework"
|