build: fix pretty() sed invocation portability in .ver script

The `\0` being used to refer to the whole match is a GNU
extension. On other implementations of sed, this will simply
replace the each matched line with `	0;`, resulting in symbols
being missing in the NetworkManager executable, which breaks the
wifi plugin and others.

Use `&` instead, which behaves as expected in all implementations.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1562
This commit is contained in:
Daniel Kolesa 2023-03-07 05:39:20 +01:00 committed by Thomas Haller
parent 747d1100f5
commit 97abbbb987
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -71,7 +71,7 @@ get_symbols_missing() {
}
pretty() {
sed 's/.*/\t\0;/'
sed 's/.*/\t&;/'
}
do_build() {