Guest User

Untitled

a guest
Apr 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.54 KB | None | 0 0
  1. #!/bin/bash
  2. set -x
  3. # combines CFMN scripts into one small javascript file
  4. my_dir="/var/www/cfmn/javascript"
  5. [[ -d "$my_dir" ]] && cd "$my_dir" || echo "$my_dir not found"
  6. echo "Removing old cfmn combined and minified javascript..."
  7. rm cfmn.js
  8. rm cfmn.min.js
  9. echo "Combining CFMN javascript..."
  10. cat sitefunctions.js userfunctions.js admin.js members.js editor.js events.js wiki.js blog.js profile.js twitter.js stats.js >> cfmn.js
  11. echo "Compressing CFMN javascript..."
  12. java -jar yuicompressor2.4.2.jar -o cfmn.min.js cfmn.js
  13. echo "Complete."
Add Comment
Please, Sign In to add comment