Lines Matching +full:rev +full:- +full:parse
9 # http://www.apache.org/licenses/LICENSE-2.0
28 args: <project-dir> [<input-string>] [-i <input-file>] [-o <output-file>]
30 Either <input-string> or -i <input-file> needs to be provided.
35 <major> - The major version point parsed from the CHANGES.md file.
36 <minor> - The minor version point parsed from the CHANGES.md file.
37 <patch> - The point version point parsed from the CHANGES.md file.
38 <flavor> - The optional dash suffix parsed from the CHANGES.md file (excluding
40 <-flavor> - The optional dash suffix parsed from the CHANGES.md file (including
42 <date> - The optional date of the release in the form YYYY-MM-DD
43 <commit> - The git commit information for the directory taken from
44 "git describe" if that succeeds, or "git rev-parse HEAD"
48 -o is an optional flag for writing the output string to the given file. If
93 # Match the first well-formed version-and-date line.
94 # Allow trailing whitespace in the checked-out source code has
95 # unexpected carriage returns on a linefeed-only system such as
97 pattern = re.compile(r'^#* +(\d+)\.(\d+)\.(\d+)(-\w+)? (\d\d\d\d-\d\d-\d\d)? *$')
110 "flavor": flavor.lstrip("-"),
111 "-flavor": flavor,
121 Runs 'git describe', or alternately 'git rev-parse HEAD', in directory. If
133 ['git', 'rev-parse', 'HEAD'], directory).rstrip().decode()
157 if not sys.argv[i].startswith("-"):
165 if opt == "-i" or opt == "-o":
170 if (opt == "-i"):
172 elif (opt == "-o"):
208 .replace("@-flavor@", software_version["-flavor"]) \