add precmd command, add build-all.sh