From: Willy Tarreau Date: Thu, 26 Jun 2025 16:01:02 +0000 (+0200) Subject: SCRIPTS: drop the HTML generation from announce-release X-Git-Tag: v3.3-dev2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27baa3f9ff7f50f3751aa541daaa22a4ca577b5a;p=thirdparty%2Fhaproxy.git SCRIPTS: drop the HTML generation from announce-release It has not been used over the last 5 years or so and systematically requires manual removal. Let's just stop producing it. Also take this opportunity to add the missing link to /discussions. --- diff --git a/scripts/announce-release b/scripts/announce-release index c99082191..f74abeb06 100755 --- a/scripts/announce-release +++ b/scripts/announce-release @@ -1,13 +1,12 @@ #!/usr/bin/env bash -# prepares a template e-mail and HTML file to announce a new release -# Copyright (c) 2006-2016 Willy Tarreau +# prepares a template e-mail to announce a new release +# Copyright (c) 2006-2025 Willy Tarreau # # In short : # - requires git # - wants that last commit is a release/tag # - no restriction to master, uses last tag # - creates mail-$version.txt -# - creates web-$version.html # - indicates how to edit the mail and how to send it USAGE="Usage: ${0##*/} [-f] [-p] [-b branch] [-d date] [-o oldver] [-n newver] @@ -22,7 +21,6 @@ PREPARE= FORCE= OUTPUT= BRANCH= -HTML= DATE= YEAR= OLD= @@ -159,18 +157,13 @@ fi YEAR="${DATE%%/*}" OUTPUT="$DIR/mail-haproxy-$NEWVER.txt" -HTML="$DIR/web-haproxy-$NEWVER.html" -[ -z "$FORCE" ] || rm -f "${OUTPUT}" "${HTML}" +[ -z "$FORCE" ] || rm -f "${OUTPUT}" if [ -e "$OUTPUT" ]; then die "${OUTPUT##*/} already exists, please remove it or retry with -f." fi -if [ -e "$HTML" ]; then - die "$HTML already exists, please remove it or retry with -f." -fi - ( echo "# Send this using:" echo "# mutt -H <(tail -n +4 ${OUTPUT##*/}) -s \"[ANNOUNCE] haproxy-$NEWVER\" haproxy@formilux.org" @@ -216,6 +209,7 @@ fi echo " Discourse : https://discourse.haproxy.org/" echo " Slack channel : https://slack.haproxy.org/" echo " Issue tracker : https://github.com/haproxy/haproxy/issues" + echo " Q&A from devs : https://github.com/orgs/haproxy/discussions" echo " Sources : https://www.haproxy.org/download/${BRANCH}/src/" echo " Git repository : https://git.haproxy.org/git/${gitdir}/" echo " Git Web browsing : https://git.haproxy.org/?p=${gitdir}" @@ -239,41 +233,8 @@ fi ) >> "$OUTPUT" -# prepare the HTML update -set -- $(date +%e -d "$DATE") -case "$1" in - 11|12|13) day="${1}th" ;; - *1) day="${1}st" ;; - *2) day="${2}nd" ;; - *3) day="${1}rd" ;; - *) day="${1}th" ;; -esac - -humandate=$(date "+%B, $day, %Y" -d "$DATE") -(echo "$humandate : $NEWVER" - echo "

" - echo "

    " - echo "<--------------------------- edit contents below --------------------------->" - echo "- per tag :" - git log --oneline --reverse --format="%s" "v$OLD".."$LASTCOM" | cut -f1 -d':' | sort | uniq -c - echo - echo "- per topic :" - git log --oneline --reverse --format="%s" "v$OLD".."$LASTCOM" | cut -f2 -d':' | awk '{sub("s$","",$1); print $1}' | sort | uniq -c - echo - echo "major commits :" - git log --oneline --reverse --format=" - %s" "v$OLD".."$LASTCOM" | grep MAJOR - echo - echo "<--------------------------------------------------------------------------->" - echo " Code and changelog are available here as usual." - echo "
" - echo "

" - echo " " -) >> "$HTML" - echo "The announce was emitted into file $OUTPUT." echo "You can edit it and send it this way :" echo echo " mutt -H <(tail -n +4 ${OUTPUT##*/}) -s \"[ANNOUNCE] haproxy-$NEWVER\" haproxy@formilux.org" echo -echo "The HTML block was emitted into $HTML and needs to be finished by hand." -echo