diff options
author | Darshit Shah <darnir@gnu.org> | 2023-05-11 02:22:45 +0200 |
---|---|---|
committer | Darshit Shah <git@darnir.net> | 2023-05-11 02:22:45 +0200 |
commit | 76ab37bff9329f5526d30d9994e3bbe04462cc58 (patch) | |
tree | 0a504791df019e6df3ef8dfaa28f12fcf194333d | |
parent | 774705838f3d5fdec5c822241c2d9704fff27d2a (diff) | |
download | wget-76ab37bff9329f5526d30d9994e3bbe04462cc58.tar.gz |
contrib/make-release: Update regexes to match the NEWS filev1.21.4
-rwxr-xr-x | contrib/make-release | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/make-release b/contrib/make-release index dfaf03a1..0dd5f385 100755 --- a/contrib/make-release +++ b/contrib/make-release @@ -56,14 +56,14 @@ APP_VER=$(grep "^PACKAGE_VERSION='" configure | cut -d "'" -f2) echo "Making release for $APP_NAME $APP_VER" ask_continue -NEWS_VERSION=$(grep -i "Noteworthy changes in release" NEWS | head -1 | awk '{print $6}') +NEWS_VERSION=$(grep -i "Noteworthy changes in release" NEWS | head -2 | tail -1 | awk '{print $6}') if [ "$NEWS_VERSION" != "$APP_VER" ]; then echo "Latest version in NEWS file does not match latest tag" exit 1 fi PREV_VER=$(cat .prev-version) -LNO_CVER=$(grep -in "Noteworthy changes in release" NEWS | head -1 | cut -f1 -d:) -LNO_PVER=$(grep -in "Changes in $APP_NAME" NEWS | head -2 | tail -1 | cut -f1 -d:) +LNO_CVER=$(grep -in "Noteworthy changes in release" NEWS | head -2 | tail -1 | cut -f1 -d:) +LNO_PVER=$(grep -in "Noteworthy changes in release" NEWS | head -3 | tail -1 | cut -f1 -d:) sed -n "${LNO_CVER},${LNO_PVER}p" NEWS echo "This is the current contents of your NEWS" ask_continue |