glueIt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #!/bin/sh
  2. case "$1" in
  3. "clean")
  4. echo "removing ./build dir..."
  5. rm -R ./build
  6. ;;
  7. "build")
  8. echo "building SuperGlue clients..."
  9. mkdir -p ./build
  10. mkdir -p ./build/firefox
  11. mkdir -p ./build/chromium
  12. cp -R ./src/firefox/* ./build/firefox
  13. cp -R ./src/chromium/* ./build/chromium
  14. mkdir -p ./build/firefox/data/superglue-client
  15. mkdir -p ./build/chromium/superglue-client
  16. cp -R ./src/allplatforms/* ./build/firefox/data/superglue-client
  17. cp -R ./src/allplatforms/* ./build/chromium/superglue-client
  18. ;;
  19. "testFF")
  20. echo "Testing Firefox add-on..."
  21. cd ./tools/firefox-addon-sdk-1.16
  22. source bin/activate
  23. cd ../..
  24. cd ./build/firefox
  25. cfx run
  26. cd ../..
  27. ;;
  28. "pkgFF")
  29. echo "Packaging Firefox add-on..."
  30. cd ./tools/firefox-addon-sdk-1.16
  31. source bin/activate
  32. cd ../..
  33. cd ./build/firefox
  34. cfx xpi
  35. cd ../..
  36. ;;
  37. *)
  38. echo "Usage: $0"
  39. echo " "
  40. echo " clean Remove build dir"
  41. echo " build Build SuperGlue clients"
  42. echo " "
  43. echo " testFF Test Firefox add-on in sandboxed browser"
  44. echo " pkgFF Make Firefox add-on package (./build/SuperGlue.xpi)"
  45. echo " (---- To package Chromium extension, go there to chrome://extensions)"
  46. echo " "
  47. echo "ATTENTION!! Call $0 only in root of the project directory!"
  48. echo " "
  49. ;;
  50. esac