glueIt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. cp -R ./src/allplatforms/* ./build/firefox/data/superglue-client
  15. cp -R ./src/allplatforms/* ./build/chromium/superglue-client
  16. ;;
  17. "testFF")
  18. echo "Testing Firefox add-on..."
  19. cd ./tools/firefox-addon-sdk-1.16
  20. source bin/activate
  21. cd ../..
  22. cd ./build/firefox
  23. cfx run
  24. cd ../..
  25. ;;
  26. "pkgFF")
  27. echo "Packaging Firefox add-on..."
  28. cd ./tools/firefox-addon-sdk-1.16
  29. source bin/activate
  30. cd ../..
  31. cd ./build/firefox
  32. cfx xpi
  33. cd ../..
  34. ;;
  35. *)
  36. echo "Usage: $0"
  37. echo " "
  38. echo " clean Remove build dir"
  39. echo " build Build SuperGlue clients"
  40. echo " "
  41. echo " testFF Test Firefox add-on in sandboxed browser"
  42. echo " pkgFF Make Firefox add-on package (./build/SuperGlue.xpi)"
  43. echo " (---- To package Chromium extension, go there to chrome://extensions)"
  44. echo " "
  45. echo "ATTENTION!! Call $0 only in root of the project directory!"
  46. echo " "
  47. ;;
  48. esac