Wecomp is a tool build to make compressing sources easy and painless. It will pack and compress all js/css files. It will compress html/php-templates and also handle embedded css/js tags.
It's a python script, you will need to download code, or clone git repository to get it. Then run "python wecomp.py -h" to get some info about how to use it.