commit:     98c6e0b94ab1696259da040e571a79fd272d5b4f
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 11 15:35:23 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Dec 11 21:24:18 2022 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=98c6e0b9

Documentation: lib.sh: bump_set_from_live: sed *any* version numbers

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 Documentation/maintainers/new/lib.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/maintainers/new/lib.sh 
b/Documentation/maintainers/new/lib.sh
index 26b4b36fe8..d6317e1fa3 100755
--- a/Documentation/maintainers/new/lib.sh
+++ b/Documentation/maintainers/new/lib.sh
@@ -60,7 +60,7 @@ bump_set_from_live() {
        local destination="${2}"
 
        cp sets/${target}-live sets/${target}-${destination}
-       sed -i -e "s/~/</" -e "s/9999/${destination}.50/" 
sets/${target}-${destination}
+       sed -i -E "s/~/</;s/[0-9]+(\.[0-9]+)*$/${destination}.50/" 
sets/${target}-${destination}
        sed -i -e "/^@/s/live$/${destination}/" sets/${target}-${destination}
 
        for entry in $(grep ^@ sets/${target}-live) ; do

Reply via email to