116 product_deps_file =
'product_deps' 117 manifest_file =
'manifest.txt' 121 opts, args = getopt.getopt(argv,
"hp:m:q:",[
"product_deps=",
"manifest=",
"qualifiers="])
122 except getopt.GetoptError:
123 print(
'generate-manifest.py -p <product_deps> -p <manifest> -q <qualifiers>')
126 for opt, arg
in opts:
128 print(
'generate-manifest.py -p <product_deps> -m <manifest> -q <qualifiers>')
130 elif opt
in (
"-p",
"--product_deps"):
131 product_deps_file = arg
132 elif opt
in (
"-m",
"--manifest"):
134 elif opt
in (
"-q",
"--qualifiers"):
138 manifest = builder.build_manifest()
140 with
open(manifest_file, mode=
'w')
as f:
141 print(manifest.getvalue().strip(), file=f)
int open(const char *, int)
Opens a file descriptor.