Message ID | 20250122-update-release-v2-4-d01529db3aa5@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Update release.sh | expand |
On Wed, Jan 22, 2025 at 04:01:30PM +0100, Andrey Albershteyn wrote: > Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org> Looks good! Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> --D > --- > release.sh | 43 +++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 43 insertions(+) > > diff --git a/release.sh b/release.sh > index 57ff217b9b6bf62873a149029957fdd9f01b8c38..723806beb05761da06d971460ee15c97d2d0d5b1 100755 > --- a/release.sh > +++ b/release.sh > @@ -13,11 +13,13 @@ set -e > > KUP=0 > COMMIT=1 > +LAST_HEAD="" > > help() { > echo "$(basename) - create xfsprogs release" > printf "\t[--kup|-k] upload final tarball with KUP\n" > printf "\t[--no-commit|-n] don't create release commit\n" > + printf "\t[--last-head|-h] commit of the last release\n" > } > > update_version() { > @@ -48,6 +50,10 @@ while [ $# -gt 0 ]; do > --no-commit|-n) > COMMIT=0 > ;; > + --last-head|-h) > + LAST_HEAD=$2 > + shift > + ;; > --help|-h) > help > exit 0 > @@ -122,6 +128,43 @@ if [ $KUP -eq 1 ]; then > pub/linux/utils/fs/xfs/xfsprogs/ > fi; > > +mail_file=$(mktemp) > +if [ -n "$LAST_HEAD" ]; then > + cat << EOF > $mail_file > +To: linux-xfs@vger.kernel.org > +Subject: [ANNOUNCE] xfsprogs $(git describe --abbrev=0) released > + > +Hi folks, > + > +The xfsprogs repository at: > + > + git://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git > + > +has just been updated. > + > +Patches often get missed, so if your outstanding patches are properly reviewed > +on the list and not included in this update, please let me know. > + > +The for-next branch has also been updated to match the state of master. > + > +The new head of the master branch is commit: > + > +$(git log --oneline --format="%H" -1) > + > +New commits: > + > +$(git shortlog --format="[%h] %s" $LAST_HEAD..HEAD) > + > +Code Diffstat: > + > +$(git diff --stat --summary -C -M $LAST_HEAD..HEAD) > +EOF > +fi > + > echo "" > echo "Done. Please remember to push out tags and the branch." > printf "\tgit push origin v${version} master\n" > +if [ -n "$LAST_HEAD" ]; then > + echo "Command to send ANNOUNCE email" > + printf "\tneomutt -H $mail_file\n" > +fi > > -- > 2.47.0 > >
diff --git a/release.sh b/release.sh index 57ff217b9b6bf62873a149029957fdd9f01b8c38..723806beb05761da06d971460ee15c97d2d0d5b1 100755 --- a/release.sh +++ b/release.sh @@ -13,11 +13,13 @@ set -e KUP=0 COMMIT=1 +LAST_HEAD="" help() { echo "$(basename) - create xfsprogs release" printf "\t[--kup|-k] upload final tarball with KUP\n" printf "\t[--no-commit|-n] don't create release commit\n" + printf "\t[--last-head|-h] commit of the last release\n" } update_version() { @@ -48,6 +50,10 @@ while [ $# -gt 0 ]; do --no-commit|-n) COMMIT=0 ;; + --last-head|-h) + LAST_HEAD=$2 + shift + ;; --help|-h) help exit 0 @@ -122,6 +128,43 @@ if [ $KUP -eq 1 ]; then pub/linux/utils/fs/xfs/xfsprogs/ fi; +mail_file=$(mktemp) +if [ -n "$LAST_HEAD" ]; then + cat << EOF > $mail_file +To: linux-xfs@vger.kernel.org +Subject: [ANNOUNCE] xfsprogs $(git describe --abbrev=0) released + +Hi folks, + +The xfsprogs repository at: + + git://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git + +has just been updated. + +Patches often get missed, so if your outstanding patches are properly reviewed +on the list and not included in this update, please let me know. + +The for-next branch has also been updated to match the state of master. + +The new head of the master branch is commit: + +$(git log --oneline --format="%H" -1) + +New commits: + +$(git shortlog --format="[%h] %s" $LAST_HEAD..HEAD) + +Code Diffstat: + +$(git diff --stat --summary -C -M $LAST_HEAD..HEAD) +EOF +fi + echo "" echo "Done. Please remember to push out tags and the branch." printf "\tgit push origin v${version} master\n" +if [ -n "$LAST_HEAD" ]; then + echo "Command to send ANNOUNCE email" + printf "\tneomutt -H $mail_file\n" +fi
Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org> --- release.sh | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)