alias amake='_(){ rm -f ./build.log; . ./build/envsetup.sh; lunch $1; make -j8 2>&1|tee ./build.log; }; _'and now you can avoid envsetup.sh, lunch running and get build log file :) Better is to run:
$ amake something-userdebugfrom Android source directory.
Or the same but as explicit function (put it, for example in ~/.zshrc):
function amake() { /bin/bash -s stdin << EOF rm -f ./build.log . ./build/envsetup.sh lunch $1 make -j8 2>&1|tee ./build.log EOF }
Комментариев нет:
Отправить комментарий
Thanks for your posting!