makeheader.py 322 B

12345678910111213
  1. #!/usr/bin/env python3
  2. # NOTE: this file does not have the executable bit set. This tests that
  3. # Meson can automatically parse shebang lines.
  4. import sys
  5. template = '#define RET_VAL %s\n'
  6. with open(sys.argv[1]) as f:
  7. output = template % (f.readline().strip(), )
  8. with open(sys.argv[2], 'w') as f:
  9. f.write(output)