path: root/
diff options
authorArtem Bityutskiy <>2012-05-07 11:44:38 +0300
committerArtem Bityutskiy <>2014-04-07 14:05:54 +0300
commit12158de7b14b8a05cfaab6c0b9e8bed52e50c8a9 (patch)
tree4bb43fb2925ee365961cfc3baeec7703d224e6c0 /
parent9f107132a6a073cce37434ca9cda6917dd8d866b (diff) suggest announcement e-mail
The '' script appears to be extremely useful - I do not forget things as I used to anymore (amending Makefile, signing, uploading to the FTP server, etc). It is very useful that it suggest me exact commands which I may just copy-past to my command line. This patch improves the script and makes it suggest the e-mail announcement which I may just copy-paste to my command line and the announcement will be sent using 'git send-email' command. It will include all the interested parties in CC. Signed-off-by: Artem Bityutskiy <>
Diffstat (limited to '')
1 files changed, 34 insertions, 2 deletions
diff --git a/ b/
index 460335b..44d67cc 100755
--- a/
+++ b/
@@ -57,10 +57,42 @@ git archive --format=tar --prefix="$release_name/" "$tag_name" | \
echo "Signing the tarball"
gpg -o "$outdir/$release_name.tar.bz2.asc" --detach-sign -a "$outdir/$release_name.tar.bz2"
-cat <<EOF
+cat <<EOF1
Created $outdir/$release_name.tar.bz2
Please, verify, then push the tag and upload the tarball and the signature
You can use these commands:
git push origin master $tag_name
-scp $outdir/$release_name.tar.bz2 $outdir/$release_name.tar.bz2.asc
+scp $outdir/$release_name.tar.bz2 $outdir/$release_name.tar.bz2.asc $scp_url
+Please, send an announcement, below is the command you may run in your
+run. Substitute "me" with your e-mail address if needed, although it is
+cleaner to configure 'git send-email' to interpret 'me' as an alias for
+your name/email, see 'sendemail.aliasesfile' git configuration option.
+cat > \$mtd_tmpfile <<EOF
+Subject: [ANNOUNCE] $release_name is released
+$release_name is released.
+Tarball: $ftp_url/$release_name.tar.bz2
+Tarball gpg signature: $ftp_url/$release_name.tar.bz2.asc
+Signed git tag: $git_url $tag_name
+git send-email --from me --to 'MTL Mailing List <>' --cc 'Peter Korsgaard (buildroot) <>' --cc 'Josh Boyer (Fedora) <>' --cc 'Riku Voipio (Debian) <>' \$mtd_tmpfile
+rm \$mtd_tmpfile