wire-it-up.sh 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. # ---------- ---------- ---------- ---------- ---------- ----------
  3. #NOTE: This will either run the plugin, or do the following:
  4. #
  5. # Copy:
  6. # - assets
  7. # - manifest
  8. # - java
  9. # - layouts
  10. # - menus
  11. # Remove default:
  12. # - layouts
  13. # ---------- ---------- ---------- ---------- ---------- ----------
  14. if [ -e plugins/wire-it-up.sh ] ; then
  15. plugins/wire-it-up.sh
  16. else
  17. echo wire-it-up!
  18. cp -R ./content/assets ./output/hundreds/assets
  19. cp ./content/AndroidManifest.xml ./output/hundreds/AndroidManifest.xml
  20. cp ./content/java/HundredsSandbox.java ./output/hundreds/src/community/peers/hundreds/HundredsSandbox.java
  21. cp ./content/java/HundredsServer.java ./output/hundreds/src/community/peers/hundreds/HundredsServer.java
  22. cp ./content/java/MainActivity.java ./output/hundreds/src/community/peers/hundreds/MainActivity.java
  23. cp ./content/res/values/strings.xml ./output/hundreds/res/values/strings.xml
  24. cp ./content/res/layout/activity_main.xml ./output/hundreds/res/layout/activity_main.xml
  25. rm ./output/hundreds/res/layout/main.xml
  26. cp -R ./content/res/menu ./output/hundreds/res/menu
  27. fi