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 @@
my_wonderful_function
@@ -0,0 +1,17 @@
#!/usr/bin/env python3
import sys
ifile = sys.argv[1]
ofile = sys.argv[2]
templ = '''#pragma once
int %s(void) {
return 42;
}
'''
funname = open(ifile).readline().strip()
open(ofile, 'w').write(templ % funname)
@@ -0,0 +1,5 @@
#include"funheader.h"
int main(void) {
return my_wonderful_function() != 42;
}
@@ -0,0 +1,12 @@
fp = find_program('genheader.py')
genh = custom_target('genh',
input : 'funname',
output : 'funheader.h',
command : [fp, '@INPUT@', '@OUTPUT@'])
dep = declare_dependency(sources : [genh])
e = executable('genuser', 'main.c',
dependencies : dep)
test('genuser', e)