Refactor rbutil deploy script.

- refactor some duplicated code.
- fix a wrong exit() call.
- improve build failure detection and abort on errors instead of going on.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22894 a1c6a512-1295-4272-9138-f99709370657
1 file changed