fix: noconfirm auto-selects first AUR match

This commit is contained in:
2026-05-08 11:01:02 +01:00
parent d39cdc3fd9
commit 153cca6132
8056 changed files with 1983098 additions and 779 deletions
@@ -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();
}
@@ -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)