summaryrefslogtreecommitdiff
path: root/scripts/build_deps.sh
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-02-01 02:02:34 +0100
committercyBerta <cyberta@riseup.net>2021-02-01 04:26:02 +0100
commiteba2108802a4b6251419b02c2f0ca47c0a701653 (patch)
treeea8a367135749d0012be6a4c78e4284e679e93e7 /scripts/build_deps.sh
parent9da1dd82ebb8778619a79bd9a896d1dff2fac0e1 (diff)
make sure ./prepareForDistribution.sh can be called from project root folder and the scripts folder
Diffstat (limited to 'scripts/build_deps.sh')
-rwxr-xr-xscripts/build_deps.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build_deps.sh b/scripts/build_deps.sh
index beb5e13e..1785fca8 100755
--- a/scripts/build_deps.sh
+++ b/scripts/build_deps.sh
@@ -5,7 +5,8 @@ function quit {
exit 1
}
-
+SCRIPT_DIR=$(dirname "$0")
+BASE_DIR="$SCRIPT_DIR/.."
DIR_OVPNASSETS=./ics-openvpn/main/build/ovpnassets
DIR_OVPNLIBS=./ics-openvpn/main/build/intermediates/cmake/noovpn3/release/obj
DIR_GOLIBS=./go/lib/
@@ -15,6 +16,7 @@ FILE_ARM=./go/out/armeabi-v7a/piedispatcherlib
# init
# look for empty dir
+cd $BASE_DIR
if [[ $(ls -A ${DIR_OVPNASSETS}) && $(ls -A ${DIR_OVPNLIBS}) ]]
then
echo "Dirty build: skipped externalNativeBuild - reusing existing libs"