blob: eba63fbca8d3bb49f11f666d8be7c7a0fa1dea11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
{
redirfd -w 1 configure.new
if { heredoc 0 ${TEMPLATE} s6-cat }
s6-echo
}
if { s6-chmod 0755 configure.new }
s6-rename configure.new configure
|