mesonbuild/meson

configure_file(): allow more than one substitution per string

Open

#1,864 opened on May 29, 2017

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Python (4,978 stars) (1,465 forks)batch import
enhancementgeneratorshelp wanted

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

configure_file(): allow more than one substitution per string · mesonbuild/meson#1864 | Good First Issue