From: Henrik Gombos Date: Thu, 13 Jul 2023 18:43:46 +0000 (-0400) Subject: refactor(Makefile): improve AUTHORS and CONTRIBUTORS targets X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5cdd4b3502a2774f9590fcb9d2e17fe29b3ea87d;p=thirdparty%2Fdracut.git refactor(Makefile): improve AUTHORS and CONTRIBUTORS targets Make make rules more generic to be able to use them not just in manual release process but also in CI release process. --- diff --git a/Makefile b/Makefile index 5fd939564..0e7a101b5 100644 --- a/Makefile +++ b/Makefile @@ -300,7 +300,7 @@ efi: all @echo wrote linux-$(KVERSION).efi AUTHORS: - git shortlog --numbered --summary -e |while read a rest || [ -n "$$rest" ]; do echo $$rest;done > AUTHORS + @git log | git shortlog --numbered --summary -e | while read -r a rest || [ -n "$$rest" ]; do echo "$$rest"; done > AUTHORS CONTRIBUTORS: - @git shortlog $(DRACUT_MAIN_VERSION).. --numbered --summary -e |while read a rest || [ -n "$$rest" ]; do echo "- $$rest";done + @git log | git shortlog $(DRACUT_MAIN_VERSION).. --numbered --summary -e | while read -r a rest || [ -n "$$rest" ]; do echo "- $$rest"; done diff --git a/tools/release.sh b/tools/release.sh index f8f78f2ed..3af681596 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -1,14 +1,11 @@ #!/bin/bash -LAST_VERSION=$(git describe --abbrev=0 --tags --always 2> /dev/null) - # CONTRIBUTORS printf "#### Contributors\n\n" > CONTRIBUTORS.md -git log | git shortlog "$LAST_VERSION.." --numbered --summary -e | while read -r a rest || [ -n "$rest" ]; do echo "- $rest"; done >> CONTRIBUTORS.md +make CONTRIBUTORS >> CONTRIBUTORS.md # Update AUTHORS -# shellcheck disable=SC2034 -git log | git shortlog --numbered --summary -e | while read -r a rest || [ -n "$rest" ]; do echo "$rest"; done > AUTHORS +make AUTHORS # Update NEWS.md cargo install clog-cli