summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 20:17:21 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 20:22:52 (EDT)
commit7bf35fb795a870627b16b702ab03c0894ad9a889 (patch)
tree5476ee297cc0c7bac5cc7fab642376418268e45b /scripts
parent204bc01fc535c9d4d0210fa72e207d4141d687c6 (diff)
scripts/announce-release.sh: Sign message
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