diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-04-28 04:11:57 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-04-28 04:11:57 +0000 |
| commit | 41e5db72f90b26317b983be1afc2ae39be6a4483 (patch) | |
| tree | ff45e45e00f56a9e8bded362e9ba587b0824492e /tools/gen-configure.el | |
| parent | 7fcf68f39819b8a2fa83336a9a2185d7bf83b1e3 (diff) | |
| download | s6-dns-41e5db72f90b26317b983be1afc2ae39be6a4483.tar.gz | |
pkg-config support; prepare for 2.4.1.0
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'tools/gen-configure.el')
| -rwxr-xr-x | tools/gen-configure.el | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/gen-configure.el b/tools/gen-configure.el new file mode 100755 index 0000000..577d86f --- /dev/null +++ b/tools/gen-configure.el @@ -0,0 +1,32 @@ +#!/command/execlineb -S0 + +# For dev use only. Don't run this, it overwrites your configure. + +# The quoting interactions in sed and sh make it impossible to get +# such a simple thing done. It's amazing how bad traditional Unix is. + +backtick -E TEMPLATE { redirfd -r 0 tools/configure.template s6-cat } +s6-envdir -Lf package/configure-snippets +multisubstitute +{ + importas -uS configure_help_install + importas -uS configure_help_dependencies + importas -uS configure_help_options + importas -uS configure_init_vars + importas -uS configure_case_lines + importas -uS configure_expand_dirs + importas -uS configure_slashpackage_other + importas -uS configure_extra_checks + importas -uS configure_generate_make + importas -uS configure_generate_configh +} + +if +{ + heredoc 0 ${TEMPLATE} + redirfd -w 1 configure.new + s6-cat +} + +if { s6-chmod 0755 configure.new } +s6-rename configure.new configure |
