Commit e1c500dd authored by Ting-Wei Lan's avatar Ting-Wei Lan

Replace \+ with \{1,\}

\+ is a non-standard GNU extension recognized by GNU sed. However, it
doesn't work on FreeBSD, causing the generated hdy_init_public_types
function to be empty.

Fixes Librem5/libhandy#135
parent 723f0646
Pipeline #21554 passed with stages
in 8 minutes and 27 seconds
......@@ -16,7 +16,7 @@ void
hdy_init_public_types (void)
sed -ne 's/^#define \+\(HDY_TYPE_[A-Z0-9_]\+\) \+.*/ g_type_ensure (\1);/p' "$@" | sort
sed -ne 's/^#define \{1,\}\(HDY_TYPE_[A-Z0-9_]\{1,\}\) \{1,\}.*/ g_type_ensure (\1);/p' "$@" | sort
echo '}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment