[Mirror] The Firmware for FFBSee Community
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.

minify-webstuff.sh 392B

1234567891011121314151617
  1. #!/bin/bash
  2. # Function: Minify css/js files
  3. aminify=(`find ./files/www/ -name "*.css" -o -name "*.js"`)
  4. for minifyme in "${aminify[@]}"; do
  5. echo "- minifying: $minifyme"
  6. yui-compressor $minifyme -o $minifyme
  7. done
  8. aminify=(`find ./files/www/ -name "*.html"`)
  9. for minifyme in "${aminify[@]}"; do
  10. echo "- minifying: $minifyme"
  11. sed -i ':a;N;$!ba;s/>\s*</></g' $minifyme
  12. done