Eclipse: Android Project: How to run shell script on build?
===

I have a build script that actually does calls ant to build the apk file and does some stuff on it and bundles again the dex files and calls ant to build the final apk and that APK is ready to be installed in emulator or device. 

How can i do all this by just click on Run -> Run, or Project -> Build or some other eclipse command. 

i want when i click on the Project -> Build Project, the shell script should run and i get the final APK ready and then by clicking on Run it will install to the emulator or APK.

How can i achieve this? ...