parent
c93bce7839
commit
68275b32e8
8 changed files with 64 additions and 2 deletions
@ -0,0 +1,4 @@ |
||||
## Generator learned capture |
||||
|
||||
Generators can now be configured to capture the standard output. See |
||||
`test cases/common/98 gen extra/meson.build` for an example. |
@ -0,0 +1,16 @@ |
||||
#!/usr/bin/env python3 |
||||
|
||||
import os |
||||
import sys |
||||
import argparse |
||||
|
||||
parser = argparse.ArgumentParser() |
||||
parser.add_argument('input', |
||||
help='the input file') |
||||
|
||||
options = parser.parse_args(sys.argv[1:]) |
||||
|
||||
with open(options.input) as f: |
||||
content = f.read().strip() |
||||
|
||||
print(content) |
Loading…
Reference in new issue