The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
438 B
17 lines
438 B
5 years ago
|
#!/usr/bin/env python3
|
||
|
|
||
|
import sys, os
|
||
|
|
||
|
if len(sys.argv) != 3:
|
||
|
print(sys.argv[0], '<namespace>', '<output dir>')
|
||
|
|
||
|
name = sys.argv[1]
|
||
|
odir = sys.argv[2]
|
||
|
|
||
|
with open(os.path.join(odir, name + '.h'), 'w') as f:
|
||
|
f.write('int func();\n')
|
||
|
with open(os.path.join(odir, name + '.c'), 'w') as f:
|
||
|
f.write('int main(int argc, char *argv[]) { return 0; }')
|
||
|
with open(os.path.join(odir, name + '.sh'), 'w') as f:
|
||
|
f.write('#!/bin/bash')
|