You can use google js minifier. Here's a python script that uses it to compress multiple javascript files with it:
import httplib import simplejson as json import urllib import sys def combine_js(js_files, minify=False): files = list(js_files)
Usage: python filename.py path/to/your/*.js > minified.js
If you are using an old version of python and you do not have simple json installed on your system, here is how you can get a script to work with a local version of simplejson (run these commands via SSH):
cd wget http://pypi.python.org/packages/source/s/simplejson/simplejson-2.3.2.tar.gz tar xzf simplejson-2.3.2.tar.gz export PYTHONPATH=$HOME/simplejson-2.3.2/
source share