From 9c0d25601b7bf7d764e89fc78b57cb979add5926 Mon Sep 17 00:00:00 2001 From: Geo Date: Sun, 13 Oct 2024 13:14:38 -0400 Subject: [PATCH] Fix release version grep (cherry picked from commit 594e36fc865e5a74af0aa808b88a3265dfb5390e) --- misc/releaseprep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/releaseprep b/misc/releaseprep index 8514b040d..4f84bb03c 100755 --- a/misc/releaseprep +++ b/misc/releaseprep @@ -34,7 +34,7 @@ show_usage() { regenerate_changelog() { - EGGVERSION=$(grep AC_INIT configure.ac| sed -e 's/AC_INIT(\[Eggdrop\],\[//g' -e 's/\],\[bugs@eggheads.org\].*//g') + EGGVERSION=$(grep AC_INIT configure.ac | sed -e 's/AC_INIT([^,]*,\[//' -e 's/\].*$//') EGG_RC=$(grep '^#define EGG_PATCH.*' src/version.h |cut -d " " -f 3|awk '{print tolower($0)}'|sed -e 's/^"//' -e 's/"$//') if ! [ $(echo $EGG_RC|grep ^rc) ]; then EGG_RC=""