public inbox for buildbot@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] autoregen.py: Also run autoheader if there is a config.in file
@ 2023-11-16 21:36 Mark Wielaard
  0 siblings, 0 replies; only message in thread
From: Mark Wielaard @ 2023-11-16 21:36 UTC (permalink / raw)
  To: buildbot; +Cc: Mark Wielaard

---
 builder/containers/autoregen.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/builder/containers/autoregen.py b/builder/containers/autoregen.py
index 3da6d67..bd200be 100755
--- a/builder/containers/autoregen.py
+++ b/builder/containers/autoregen.py
@@ -32,7 +32,8 @@ for folder in sorted(config_folders):
         if (folder / '..' / 'config').is_dir():
             include_arg = '-I../config'
         subprocess.check_output(f'{ENV} {ACLOCAL_BIN} --force {include_arg}', shell=True, encoding='utf8')
-    if any(True for line in configure_lines if line.startswith('AC_CONFIG_HEADERS')):
+    if ((folder / 'config.in').is_file()
+        or any(True for line in configure_lines if line.startswith('AC_CONFIG_HEADERS'))):
         subprocess.check_output(f'{ENV} {AUTOHEADER_BIN} -f', shell=True, encoding='utf8')
     # apparently automake is somehow unstable -> skip it for gotools
     if (any(True for line in configure_lines if line.startswith('AM_INIT_AUTOMAKE'))
-- 
2.39.3


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-16 21:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-16 21:36 [PATCH] autoregen.py: Also run autoheader if there is a config.in file Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).