diff options
| author | Brian Anderson <banderson@mozilla.com> | 2015-01-24 15:18:19 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2015-02-05 14:37:16 -0800 |
| commit | 290b79c15dbbefcba6309880794fb3d677f7a202 (patch) | |
| tree | 4e16333f0ab109930500455f58fe6536e1c00008 /src/etc/errorck.py | |
| parent | 0e16ad8c3f78cf750d12afac03a1d2cc9312651c (diff) | |
| download | rust-290b79c15dbbefcba6309880794fb3d677f7a202.tar.gz rust-290b79c15dbbefcba6309880794fb3d677f7a202.zip | |
Clean up tidy scripts, coverage, performance
This restructures tidy.py to walk the tree itself, and improves performance considerably by not loading entire files into buffers for licenseck. Splits build rules into 'tidy', 'tidy-basic', 'tidy-binaries', 'tidy-errors', 'tidy-features'.
Diffstat (limited to 'src/etc/errorck.py')
| -rw-r--r-- | src/etc/errorck.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/errorck.py b/src/etc/errorck.py index 9db9ed576cb..7b11504f3cd 100644 --- a/src/etc/errorck.py +++ b/src/etc/errorck.py @@ -15,6 +15,10 @@ import sys import os import re +if len(sys.argv) < 2: + print "usage: errorck.py <src-dir>" + sys.exit(1) + src_dir = sys.argv[1] errcode_map = {} error_re = re.compile("(E\d\d\d\d)") |
