root/packages/woffTools/trunk/woff-all

Revision 661, 0.7 kB (checked in by tal, 10 months ago)
- new scripts that wrap the various parts of the package.
- setup.py
Line 
1 #! /usr/bin/env python
2
3 doc = """woff-all [options] fontpath1 fontpath2"
4
5 This tool runs woof-validate, woff-info, woff-proof
6 and woff-css in their default modes. The only allowed
7 argument is -d for specifying the output directory.
8 Refer to the other tools for details about what
9 they do."""
10
11 import sys
12 from woffTools.tools import validate
13 from woffTools.tools import info
14 from woffTools.tools import proof
15 from woffTools.tools import css
16
17 if len(sys.argv) > 1 and sys.argv[1] == "-h":
18     print doc
19     sys.exit()
20
21 for i in sys.argv:
22     if i.startswith("-") and not i == "-d":
23         print "Only the -d argument may be used with this tool."
24         sys.exit()
25
26 modules = [validate, info, proof, css]
27 for module in modules:
28     module.main()
Note: See TracBrowser for help on using the browser.