mesonbuild/meson

configure_file(): allow more than one substitution per string

Closed

#1,864 opened on May 29, 2017

 (3 comments) (0 reactions) (0 assignees)Python (1,465 forks)batch import
enhancementgeneratorshelp wanted

Repository metrics

Stars
 (4,978 stars)
PR merge metrics
 (Avg merge 139d 13h) (51 merged PRs in 30d)

Description

this currently doesn't work:

configure_file(
    ...
    command : [ 'sh', '-c', '... "@INPUT@" > "@OUTPUT@"' ],
)

The problem is that mesonlib.substitute_values() does the substition using if..elif instead of if..if.

Contributor guide