diff options
author | cyBerta <cyberta@riseup.net> | 2021-02-01 02:02:34 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-02-01 04:26:02 +0100 |
commit | eba2108802a4b6251419b02c2f0ca47c0a701653 (patch) | |
tree | ea8a367135749d0012be6a4c78e4284e679e93e7 /scripts/build_deps.sh | |
parent | 9da1dd82ebb8778619a79bd9a896d1dff2fac0e1 (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-x | scripts/build_deps.sh | 4 |
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" |