Lines Matching +full:rev +full:- +full:parse
9 # http://www.apache.org/licenses/LICENSE-2.0
20 # Args: <spirv-tools_dir> <output-file>
24 # - The software version deduced from the CHANGES file in the given directory.
25 # - A longer string with the project name, the software version number, and
27 # is the output of "git describe" if that succeeds, or "git rev-parse HEAD"
85 # Match the first well-formed version-and-date line.
86 # Allow trailing whitespace in the checked-out source code has
87 # unexpected carriage returns on a linefeed-only system such as
89 pattern = re.compile(r'^(v\d+\.\d+(-dev)?) \d\d\d\d-\d\d-\d\d\s*$')
103 Runs 'git describe', or alternately 'git rev-parse HEAD', in directory. If
115 ['git', 'rev-parse', 'HEAD'], directory).rstrip().decode()
130 print('usage: {} <spirv-tools-dir> <output-file>'.format(sys.argv[0]))
137 new_content = '"{}", "SPIRV-Tools {} {}"\n'.format(