compile-android-project.sh 523 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. # ---------- ---------- ---------- ---------- ---------- ----------
  3. #TODO: Enable release build.
  4. #If build==release, then create build.properties file in the root of name
  5. #Then add the following lines:
  6. #key.store=keystore
  7. #key.alias=hundreds.peers.community
  8. #key.store.password=foo
  9. #key.alias.password=bar
  10. # ---------- ---------- ---------- ---------- ---------- ----------
  11. name=$1
  12. build=${2:-"debug"}
  13. if [ -d ${name} ] ; then
  14. cd ${name}
  15. ant ${build}
  16. else
  17. echo "compile: Project not found!"
  18. fi