]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
release.sh: add -f to generate for-next update email
authorAndrey Albershteyn <aalbersh@redhat.com>
Wed, 26 Feb 2025 14:50:33 +0000 (15:50 +0100)
committerAndrey Albershteyn <aalbersh@kernel.org>
Tue, 11 Mar 2025 09:48:03 +0000 (10:48 +0100)
Add --for-next/-f to generate ANNOUNCE email for for-next branch
update. This doesn't require new commit/tarball/tags, so skip it.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>
release.sh

index 1c0c767863d6fe6572315ba26b58f66f8668a93c..32084fb9fd904cf308135f842a20a5f9e8a99615 100755 (executable)
@@ -14,12 +14,14 @@ set -e
 KUP=0
 COMMIT=1
 LAST_HEAD=""
+FOR_NEXT=0
 
 help() {
        echo "$(basename $0) - prepare xfsprogs release tarball or for-next update"
        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|-l] commit of the last release\n"
+       printf "\t[--for-next|-f] generate announce email for for-next update\n"
 }
 
 update_version() {
@@ -96,6 +98,9 @@ while [ $# -gt 0 ]; do
                        LAST_HEAD=$2
                        shift
                        ;;
+               --for-next|-f)
+                       FOR_NEXT=1
+                       ;;
                --help|-h)
                        help
                        exit 0
@@ -108,6 +113,17 @@ while [ $# -gt 0 ]; do
        shift
 done
 
+if [ $FOR_NEXT -eq 1 ]; then
+       echo "Push your for-next branch:"
+       printf "\tgit push origin for-next:for-next\n"
+       prepare_mail "for-next"
+       if [ -n "$LAST_HEAD" ]; then
+               echo "Command to send ANNOUNCE email"
+               printf "\tneomutt -H $mail_file\n"
+       fi
+       exit 0
+fi
+
 if [ -z "$EDITOR" ]; then
        EDITOR=$(command -v vi)
 fi