Re: Add meson.build to version_stamp.pl
| От | Dagfinn Ilmari Mannsåker |
|---|---|
| Тема | Re: Add meson.build to version_stamp.pl |
| Дата | |
| Msg-id | 87wn9ek157.fsf@wibble.ilmari.org обсуждение исходный текст |
| Ответ на | Add meson.build to version_stamp.pl (Peter Eisentraut <peter.eisentraut@enterprisedb.com>) |
| Ответы |
Re: Add meson.build to version_stamp.pl
|
| Список | pgsql-hackers |
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> Thinking ahead a bit, we need to add meson.build to version_stamp.pl.
>
> Maybe someone can think of a better sed expression, but this one seems
> good enough to me for now.
[…]
> +sed_file("meson.build",
> + qq{-e "1,20s/ version: '[0-9a-z.]*',/ version: '$fullversion',/"}
> +);
I think it would be better to not rely on the line numbers, but instead
limit it to the project() stanza, something like this:
sed_file("meson.build",
qq{-e "/^project(/,/^)/ s/ version: '[0-9a-z.]*',/ version: '$fullversion',/"}
);
- ilmari
В списке pgsql-hackers по дате отправления: