Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -x
- # combines CFMN scripts into one small javascript file
- my_dir="/var/www/cfmn/javascript"
- [[ -d "$my_dir" ]] && cd "$my_dir" || echo "$my_dir not found"
- echo "Removing old cfmn combined and minified javascript..."
- rm cfmn.js
- rm cfmn.min.js
- echo "Combining CFMN javascript..."
- 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
- echo "Compressing CFMN javascript..."
- java -jar yuicompressor2.4.2.jar -o cfmn.min.js cfmn.js
- echo "Complete."
Add Comment
Please, Sign In to add comment