summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2010-04-13 10:29:44 +0000
committerJannis Leidel <jannis@leidel.info>2010-04-13 10:29:44 +0000
commitb3390fede0286c8ff8ea2c096c7f1ba58bad6db3 (patch)
treecdaaaacf3954eaec87bf932e430755d3f68c363a /django
parent31f7ff1518b863459820905d297ae538bd26f06c (diff)
Fixed #13290 - Added a section about minification of admin JavaScript files to the contributing docs. Thanks to Gabriel Hurley for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12969 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/contrib/admin/media/js/compress.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/django/contrib/admin/media/js/compress.py b/django/contrib/admin/media/js/compress.py
index 5a70b20d7e..8d2caa28ea 100644
--- a/django/contrib/admin/media/js/compress.py
+++ b/django/contrib/admin/media/js/compress.py
@@ -9,10 +9,11 @@ here = os.path.dirname(__file__)
def main():
usage = "usage: %prog [file1..fileN]"
description = """With no file paths given this script will automatically
-compress all jQuery based files of the admin app."""
+compress all jQuery-based files of the admin app. Requires the Google Closure
+Compiler library and Java version 6 or later."""
parser = optparse.OptionParser(usage, description=description)
parser.add_option("-c", dest="compiler", default="~/bin/compiler.jar",
- help="path to closure compiler jar file")
+ help="path to Closure Compiler jar file")
parser.add_option("-v", "--verbose",
action="store_true", dest="verbose")
parser.add_option("-q", "--quiet",
@@ -21,7 +22,7 @@ compress all jQuery based files of the admin app."""
compiler = os.path.expanduser(options.compiler)
if not os.path.exists(compiler):
- sys.exit("Closure compiler jar file %s not found. Please use the -c option to specify the path." % compiler)
+ sys.exit("Google Closure compiler jar file %s not found. Please use the -c option to specify the path." % compiler)
if not args:
if options.verbose: