aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/107 postconf/postconf.py
blob: 209b7af22fbe3a5ed43ae0e7bca0321b93314b2e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python3

import sys, os

template = '''#pragma once

#define THE_NUMBER {}
'''

data = open(os.path.join(os.environ['MESON_SOURCE_ROOT'], 'raw.dat')).readline().strip()
open(os.path.join(os.environ['MESON_BUILD_ROOT'], 'generated.h'), 'w').write(template.format(data))