Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
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.

33 lines
755 B

  1. #!/bin/bash
  2. MINIFY_CMD=uglifyjs
  3. JSFILES=(
  4. "js/acl.js"
  5. "js/ajaxupload.js"
  6. "js/country.js"
  7. "js/fk.autocomplete.js"
  8. "js/jquery.htmlstream.js"
  9. "js/main.js"
  10. "js/webtoolkit.base64.js"
  11. "view/theme/frost/js/acl.js"
  12. "view/theme/frost/js/fk.autocomplete.js"
  13. "view/theme/frost/js/jquery.divgrow-1.3.1.f1.js"
  14. "view/theme/frost/js/main.js"
  15. "view/theme/frost/js/theme.js"
  16. "view/theme/frost-mobile/js/acl.js"
  17. "view/theme/frost-mobile/js/fk.autocomplete.js"
  18. "view/theme/frost-mobile/js/jquery.divgrow-1.3.1.f1.js"
  19. "view/theme/frost-mobile/js/main.js"
  20. "view/theme/frost-mobile/js/theme.js"
  21. "view/theme/decaf-mobile/js/theme.js"
  22. )
  23. for i in ${JSFILES[@]}
  24. do
  25. echo "Processing $i"
  26. MINFILE=${i%%.js}.min.js
  27. rm $MINFILE
  28. $MINIFY_CMD -o $MINFILE $i
  29. done