glueIt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 ../../build/firefox
  24. cfx run
  25. cd ../..
  26. ;;
  27. "pkgFF")
  28. echo "Packaging Firefox add-on..."
  29. cd ./tools/firefox-addon-sdk-1.16
  30. source bin/activate
  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