You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
876 B

10 years ago
  1. #!/bin/bash
  2. #
  3. # This script assumes a linux environment
  4. echo "*** uBlock.firefox: Copying files"
  5. # use underscore instead of a dot!
  6. DES=dist/build/uBlock.firefox
  7. rm -r $DES
  8. mkdir -p $DES
  9. cp -R assets $DES/
  10. rm $DES/assets/*.sh
  11. cp -R src/css $DES/
  12. cp -R src/img $DES/
  13. cp -R src/js $DES/
  14. cp -R src/lib $DES/
  15. cp -R src/_locales $DES/
  16. cp src/*.html $DES/
  17. mv $DES/img/icon_128.png $DES/icon.png
  18. cp platform/firefox/vapi-*.js $DES/js/
  19. cp platform/firefox/bootstrap.js $DES/
  20. cp platform/firefox/frame*.js $DES/
  21. cp platform/firefox/chrome.manifest $DES/
  22. cp platform/firefox/install.rdf $DES/
  23. cp LICENSE.txt $DES/
  24. echo "*** uBlock.firefox: Generating meta..."
  25. python tools/make-firefox-meta.py $DES/
  26. if [ "$1" = all ]; then
  27. echo "*** uBlock.firefox: Creating package..."
  28. pushd $DES/
  29. zip ../uBlock.firefox.xpi -qr *
  30. popd
  31. fi
  32. echo "*** uBlock.firefox: Package done."