summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/announce-release.sh21
1 files changed, 20 insertions, 1 deletions
diff --git a/scripts/announce-release.sh b/scripts/announce-release.sh
index 3436230..7a02fc3 100755
--- a/scripts/announce-release.sh
+++ b/scripts/announce-release.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+KEY='2250 31F0 47FF E516 63ED 516F 1A45 9ECD E4D6 04BE'
+
package="${1}"
version="${2}"
package_name="${3}"
@@ -31,6 +33,9 @@ old_tag="$(git tag | tail -n 1)"
export GIT_DIR="${srcdir}/.git"
message="$(cat <<-EOF
+ Content-Type: text/plain; charset=UTF-8
+ Content-Transfer-Encoding: quoted-printable
+
About
=====
@@ -78,7 +83,7 @@ message="$(cat <<-EOF
$(git diff --stat=69 --color=never --find-renames=50% \
"${old_tag}..HEAD" | sed 's/^/ /')
- -- $(: Just something to follow the trailing space)
+ --=20
Patrick McDermott, CEO
Libiquity
Putting customers in control of high-quality technologies
@@ -94,6 +99,20 @@ message="$(cat <<-EOF
Subject: ${package_name} ${version} released
Message-ID: $(LC_ALL='POSIX' date \
'+%Y%m%d%H%M%S.patrick.mcdermott@libiquity.com')
+ MIME-Version: 1.0
+ Content-Type: multipart/signed; micalg=pgp-sha256; boundary="=-=-=";
+ protocol="application/pgp-signature"
+ --=-=-=
${message}
+
+ --=-=-=
+ Content-Type: application/pgp-signature
+ Content-Description: OpenPGP digital signature
+
+ $(printf '%s\n' "${message}" | sed 's/$/\r/' | \
+ gpg --local-user "${KEY}" --armor --output - \
+ --digest-algo SHA256 --detach-sign)
+
+ --=-=-=--
EOF