Fixes for Android helper scripts
Some accumulated fixes/improvements:
- Pick up on
ANDROID_ARCH
if it is set andSTANDALONE_EXTRA
does not specify it already. This waybuild-standalone
is easier to use from other contexts without having to mess withSTANDALONE_EXTRA
. In particular anything callingbuild-standalone
from abuild-cmake
context (directly or indirectly) will not need to specify Android architectures forbuild-standalone
. - Fix cleanup of the temporary directory: previously if the
eval
'ed command exited with a non-zero status code the directory would not be removed (making capturing the exit status redundant). This is now fixed. - Minor cleanup to
build-kde-project
: grep has a-q
flag, simplifying the shell quite a bit.