fix: noconfirm auto-selects first AUR match
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys, os
|
||||
|
||||
if len(sys.argv) != 2:
|
||||
print(sys.argv[0], '<output dir>')
|
||||
|
||||
odir = sys.argv[1]
|
||||
|
||||
with open(os.path.join(odir, 'mylib.h'), 'w') as f:
|
||||
f.write('int func(void);\n')
|
||||
with open(os.path.join(odir, 'mylib.c'), 'w') as f:
|
||||
f.write('''int func(void) {
|
||||
return 0;
|
||||
}
|
||||
''')
|
||||
@@ -0,0 +1,5 @@
|
||||
#include"mylib.h"
|
||||
|
||||
int main(void) {
|
||||
return func();
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
project('source generation', 'c')
|
||||
|
||||
ct = custom_target('gen',
|
||||
output : ['mylib.h', 'mylib.c'],
|
||||
command : [find_program('generator.py'), '@OUTDIR@'],
|
||||
)
|
||||
|
||||
e = executable('prog', 'main.c', ct)
|
||||
test('gentest', e)
|
||||
Reference in New Issue
Block a user