summaryrefslogtreecommitdiff
path: root/main/misc
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2017-07-19 00:30:07 +0300
committerArne Schwabe <arne@rfc2549.org>2017-07-18 23:30:07 +0200
commit406c79830acedd3f7f7508ee6b70f82303bc02ae (patch)
treebaa6f8f355befb7d4c4d69b715dc4002cbe4190f /main/misc
parent39d936d4d6f341f65c7888ef26550d03768d82cc (diff)
Fix windows 'build-native.bat' (#727)
* Fix: continue execution after 'ndk-build' * Check if 'ovpnlibs' exists before delete
Diffstat (limited to 'main/misc')
-rw-r--r--main/misc/build-native.bat6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/misc/build-native.bat b/main/misc/build-native.bat
index 1214464b..8f1323e5 100644
--- a/main/misc/build-native.bat
+++ b/main/misc/build-native.bat
@@ -41,14 +41,14 @@ if not exist openvpn\.git (
)
if [%1] == [] (
- ndk-build USE_SHORT_COMMANDS=1 -j 8 USE_BREAKPAD=0
+ call ndk-build USE_SHORT_COMMANDS=1 -j 8 USE_BREAKPAD=0
) else (
- ndk-build USE_SHORT_COMMANDS=1 %*
+ call ndk-build USE_SHORT_COMMANDS=1 %*
)
if not errorlevel 0 goto error
-rmdir /Q /S ovpnlibs
+if exist ovpnlibs rmdir /Q /S ovpnlibs
cd libs
mkdir ..\ovpnlibs