From: Willy Tarreau Date: Thu, 12 Nov 2026 15:47:56 +0000 (+0100) Subject: SCRIPTS: create-release: do not match the word "version" isolated X-Git-Tag: v3.5-dev12~19 X-Git-Url: https://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=574e4240779ca3c694978a17f599bb2cf1d70962;p=haproxy.git SCRIPTS: create-release: do not match the word "version" isolated It happens that some parts of security.txt were ruined, where anything following the word "version" till the end of a line was replaced with the current branch. Let's make sure we only match version chars after it. This can be backported. --- diff --git a/scripts/create-release b/scripts/create-release index 8d050b695..1ae42765e 100755 --- a/scripts/create-release +++ b/scripts/create-release @@ -185,7 +185,7 @@ echo "$DATE" >> VERDATE for file in doc/intro.txt doc/configuration.txt doc/management.txt $(git diff --name-only v${OLD}.. -- doc); do if [ ! -e "$file" ]; then continue; fi echo "Updating $file ..." - sed -e "1,10s:\(\sversion\s\).*:\1$BRANCH:" \ + sed -e "1,10s:\(\sversion\s*\)[0-9][0-9.]\+\(\|-dev[0-9]*\):\1$BRANCH:" \ -e "1,10s:\(\s\)\(20[0-9]\{2\}/[0-9]\{1,2\}/[0-9]\{1,2\}\):\1$DATE:" \ -i "$file" done