diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-09-30 10:14:40 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-30 10:15:47 -0700 |
| commit | d29b3ac8a7bf11e2d2774212d7e92ed35335ccf3 (patch) | |
| tree | bdb2e0260cc83e438809997186d2fa4bc23f09c3 /src/etc | |
| parent | 8174618a05c44a9b90806aa7b848cb9b7ab62d25 (diff) | |
Expand tidy to prevent binaries from being checked
Closes #9621
Diffstat (limited to 'src/etc')
| -rwxr-xr-x | src/etc/check-binaries.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/etc/check-binaries.py b/src/etc/check-binaries.py new file mode 100755 index 00000000000..ebd2a9376b6 --- /dev/null +++ b/src/etc/check-binaries.py @@ -0,0 +1,18 @@ +# Copyright 2013 The Rust Project Developers. See the COPYRIGHT +# file at the top-level directory of this distribution and at +# http://rust-lang.org/COPYRIGHT. +# +# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +# option. This file may not be copied, modified, or distributed +# except according to those terms. + +import sys + +offenders = sys.argv[1:] +if len(offenders) > 0: + print("Binaries checked into src:") + for offender in offenders: + print(offender) + sys.exit(1) |
