summaryrefslogtreecommitdiff
path: root/compile.sh
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-10-24 11:06:44 +0200
committercyBerta <richy@cyborgsociety.org>2013-11-13 00:04:12 +0100
commit4fcf3d15e5b57c6c1dffd8e7c0cd5b84fda93138 (patch)
tree16ecb5dc374aa72c962896557e240e166edce4e6 /compile.sh
parent3f4c8e4fcba83caa02b1eb98aa4b574b61da33b6 (diff)
compile.sh compiles openvpn binaries if necessary.
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh
index 179440d0..1d9a4b60 100755
--- a/compile.sh
+++ b/compile.sh
@@ -1,3 +1,11 @@
#!/bin/bash
+libopenvpn_so_files=`find libs -name libopenvpn.so | wc --lines`
+libopvnutil_so_files=`find libs -name libopvpnutil.so | wc --lines`
+minivpn_files=`find libs -name minivpn | wc --lines`
+if [ $libopenvpn_so_files -lt 4 ] || [ $libopvnutil_so_files -lt 4 ] || [ $minivpn_files -lt 4 ];
+then
+ ./compile-native-openvpn.sh
+fi
+
android update project --path . --name "Bitmask for Android" --target android-15
ant debug