Django

Code

root/django/trunk/django/bin/compile-messages.py

Revision 7844, 326 bytes (checked in by mtredinnick, 5 months ago)

Fixed #5522 -- Moved make-messages, compile-messages and daily-cleanup into django-admin.py.

They are now called "makemessages", "compilemessages" and "cleanup". This is
backwards incompatible for make-messages.py and compile-messages.py, although
the old executables still exist for now and print an error pointing the caller
to the right command to call.

This reduces the number of binaries and man pages Django needs to install.

Patch from Janis Leidel.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1 #!/usr/bin/env python
2
3 if __name__ == "__main__":
4     import sys
5     name = sys.argv[0]
6     args = ' '.join(sys.argv[1:])
7     print >> sys.stderr, "%s has been moved into django-admin.py" % name
8     print >> sys.stderr, 'Please run "django-admin.py compilemessages %s" instead.'% args
9     print >> sys.stderr
10     sys.exit(1)
Note: See TracBrowser for help on using the browser.