glueIt 1.5 KB

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