Skip to content

Instantly share code, notes, and snippets.

@benschwarz
Created December 13, 2010 22:37
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benschwarz/739724 to your computer and use it in GitHub Desktop.
Save benschwarz/739724 to your computer and use it in GitHub Desktop.
How to make Google's closure a command line executable for awesomeness
  • Download Closure
  • Place the java jar file within /usr/local/libexec
  • Create /usr/local/bin/closure, copy in the bash script shown below
  • Run chmod +x /usr/local/bin/closure

Enjoy running closure

#!/bin/bash
java -jar /usr/local/libexec/compiler.jar $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment