summaryrefslogtreecommitdiff
path: root/compile-native-openvpn.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-native-openvpn.sh
parent3f4c8e4fcba83caa02b1eb98aa4b574b61da33b6 (diff)
compile.sh compiles openvpn binaries if necessary.
Diffstat (limited to 'compile-native-openvpn.sh')
-rwxr-xr-xcompile-native-openvpn.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/compile-native-openvpn.sh b/compile-native-openvpn.sh
new file mode 100755
index 00000000..7b512631
--- /dev/null
+++ b/compile-native-openvpn.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+function compile() {
+ svn co http://google-breakpad.googlecode.com/svn/trunk/ google-breakpad
+ ./build-native.sh
+}
+
+if command -v $(head -n 1 build-native.sh | column | cut -d ' ' -f 1); then
+ compile
+elif command -v ndk-build; then
+ sed -i 's/.*ndk-build/ndk-build/g' build-native.sh
+ compile
+else
+ echo "Install ndk, or modify build-native script to point to your ndk-build executable"
+fi