Use local aapt only if needed or asked. Force local aapt if asked

This commit is contained in:
Pierre-Hugues Husson 2018-12-20 13:04:27 +01:00
parent 97e3e0f32f
commit 51f877570e

View file

@ -2,8 +2,17 @@
set -e
export LD_LIBRARY_PATH=.
export PATH=$PATH:.
if [ "$1" == "--local-aapt" ];then
export LD_LIBRARY_PATH=.
export PATH=.:$PATH
shift
fi
if ! which aapt > /dev/null;then
export LD_LIBRARY_PATH=.
export PATH=$PATH:.
fi
if ! which aapt > /dev/null;then
echo "Please install aapt (apt install aapt should do)"
exit 1