@dolik-rce commented on this pull request.


In scripts/version-bump:

> @@ -23,6 +23,7 @@ s/^\(#define VER_FILEVERSION_STR  *\)[^ ].*$/\1"'"$VER"'"/
 ' -i geany_private.rc
 
 sed -e 's/^\(AC_INIT([^,]*, *\[\)[^]]*\(\],\)/\1'"$VER"'\2/' -i configure.ac
+sed -e 's/^\( *version: *\)[^,]*\(,\)/\1'"\'$VER\'"'\2/' -i meson.build

I'm not sure if I understand correctly what you would like from this sed to do, but here is a very strictly matching version:

⬇️ Suggested change
-sed -e 's/^\( *version: *\)[^,]*\(,\)/\1'"\'$VER\'"'\2/' -i meson.build
+sed -e '1,/^\s*version:\s*/ s/^\(\s*version:\s*'\''\)[^'\'']*\(.*\)/\1'"$VER"'\2/' -i meson.build

It will match:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/pull/3599/review/1678818642@github.com>