mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-02-11 00:00:08 +08:00
25 lines
593 B
Bash
Executable File
25 lines
593 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
. $O3/core/deps/lib-versions
|
|
POLARSSL_SRC=$HOME/src/mac/$POLARSSL_VERSION
|
|
PD=$O3/core/deps/polarssl
|
|
PB=$(basename $POLARSSL_SRC)
|
|
|
|
rm -rf polartmp
|
|
mkdir polartmp
|
|
cd polartmp
|
|
cp -a $POLARSSL_SRC polarssl.new
|
|
|
|
# extract the PolarSSL source
|
|
tar xfz $DL/$PB-gpl.tgz
|
|
|
|
cd $PB
|
|
rm $(find . -type f | grep -E 'Makefile|\.orig$|\.rej$')
|
|
rm -f CMakeLists.txt include/polarssl/config.h include/polarssl/openvpn-polarssl.h
|
|
|
|
cd ../polarssl.new
|
|
rm -f CMakeLists.txt include/polarssl/config.h include/polarssl/openvpn-polarssl.h
|
|
cd ..
|
|
|
|
diff -ur $PB polarssl.new | grep -v '^Only in'
|