summaryrefslogtreecommitdiffstats
path: root/test cases/common/57 custom header generator/makeheader.py
blob: f156834470dc872a16c184c81674f14b7a36d3ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python3

# NOTE: this file does not have the executable bit set. This tests that
# Meson can automatically parse shebang lines.

import sys

template = '#define RET_VAL %s\n'
with open(sys.argv[1]) as f:
    output = template % (f.readline().strip(), )
with open(sys.argv[2], 'w') as f:
    f.write(output)