You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script uncomments and populates the versioning information in lldb-defines.h
5
+
This script uncomments and populates the versioning information in lldb-defines.h. Note that the LLDB version numbering looks like MAJOR.MINOR.PATCH
6
6
"""
7
7
8
8
importargparse
@@ -15,18 +15,19 @@
15
15
16
16
17
17
defmain():
18
-
parser=argparse.ArgumentParser()
19
-
parser.add_argument("input_path")
20
-
parser.add_argument("output_path")
21
-
parser.add_argument("lldb_version_major")
22
-
parser.add_argument("lldb_version_minor")
23
-
parser.add_argument("lldb_version_patch")
18
+
parser=argparse.ArgumentParser(
19
+
description="This script uncomments and populates the versioning information in lldb-defines.h. Note that the LLDB version numbering looks like MAJOR.MINOR.PATCH"
20
+
)
21
+
parser.add_argument("-i", "--input_path", help="The filepath for the input header.")
22
+
parser.add_argument(
23
+
"-o", "--output_path", help="The filepath for the output header."
24
+
)
25
+
parser.add_argument("-m", "--major", help="The LLDB version major.")
26
+
parser.add_argument("-n", "--minor", help="The LLDB version minor.")
27
+
parser.add_argument("-p", "--patch", help="The LLDB version patch number.")
24
28
args=parser.parse_args()
25
29
input_path=str(args.input_path)
26
30
output_path=str(args.output_path)
27
-
lldb_version_major=args.lldb_version_major
28
-
lldb_version_minor=args.lldb_version_minor
29
-
lldb_version_patch=args.lldb_version_patch
30
31
31
32
withopen(input_path, "r") asinput_file:
32
33
lines=input_file.readlines()
@@ -38,19 +39,19 @@ def main():
38
39
# e.g. //#define LLDB_VERSION -> #define LLDB_VERSION <LLDB_MAJOR_VERSION>
0 commit comments