Lines Matching +full:shebang +full:- +full:command
9 # http://www.apache.org/licenses/LICENSE-2.0
28 # parse command line
31 "-o", "--output", default="details", choices=["list", "details"]
33 argp.add_argument("-s", "--skips", default=0, action="store_const", const=1)
34 argp.add_argument("-a", "--ancient", default=0, action="store_const", const=1)
35 argp.add_argument("--precommit", action="store_true")
36 argp.add_argument("--fix", action="store_true")
74 # For example, for javascript multi-line comments, the header will be '/*', the
125 # Designer-generated source
147 r"Copyright (?P<first_year>[0-9]+\-)?(?P<last_year>[0-9]+) ([Tt]he )?gRPC"
220 "git status -z | grep -Poz '(?<=^[MARC][MARCD ] )[^\s]+'"
224 "git ls-tree -r --name-only -r HEAD | "
225 "grep -v ^third_party/ |"
226 'grep -v "\(ares_config.h\|ares_build.h\)"'
253 shebang = ""
256 shebang = lines[0] + "\n"
257 file_text = file_text[len(shebang) :]
259 rewritten_text = shebang + license_text + "\n" + file_text
333 "copyright missing or does not use cpp-style copyright header",
337 # Attempt fix: search for c-style copyright header and replace it
338 # with cpp-style copyright header. If that doesn't work
339 # (e.g. missing copyright header), write cpp-style copyright header.
353 "You may use following command to automatically fix copyright headers:"
355 print(" tools/distrib/check_copyright.py --fix")