summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/announce-release.sh25
1 files changed, 16 insertions, 9 deletions
diff --git a/scripts/announce-release.sh b/scripts/announce-release.sh
index 7a02fc3..93c9f55 100755
--- a/scripts/announce-release.sh
+++ b/scripts/announce-release.sh
@@ -1,6 +1,16 @@
#!/bin/sh
+FROM_NAME='Patrick McDermott'
+FROM_EMAIL='patrick.mcdermott@libiquity.com'
+SIG="$(cat <<-EOF
+ Patrick McDermott, CEO
+ Libiquity
+ Putting customers in control of high-quality technologies
+ http://www.libiquity.com/
+ EOF
+ )"
KEY='2250 31F0 47FF E516 63ED 516F 1A45 9ECD E4D6 04BE'
+TO_EMAIL='proteanos-dev@lists.proteanos.com'
package="${1}"
version="${2}"
@@ -84,21 +94,18 @@ message="$(cat <<-EOF
"${old_tag}..HEAD" | sed 's/^/ /')
--=20
- Patrick McDermott, CEO
- Libiquity
- Putting customers in control of high-quality technologies
- http://www.libiquity.com/
+ ${SIG}
EOF
)"
-{ sed 's/$/\r/' | /usr/sbin/sendmail -f patrick.mcdermott@libiquity.com \
- proteanos-dev@lists.proteanos.com; } <<-EOF
+{ sed 's/$/\r/' | /usr/sbin/sendmail -f "${FROM_EMAIL}" \
+ "${TO_EMAIL}"; } <<-EOF
Date: $(LC_ALL='POSIX' date '+%a, %d %b %Y %H:%M:%S %z')
- From: Patrick McDermott <patrick.mcdermott@libiquity.com>
- To: proteanos-dev@lists.proteanos.com
+ From: ${FROM_NAME} <${FROM_EMAIL}>
+ To: ${TO_EMAIL}
Subject: ${package_name} ${version} released
Message-ID: $(LC_ALL='POSIX' date \
- '+%Y%m%d%H%M%S.patrick.mcdermott@libiquity.com')
+ '+%Y%m%d%H%M%S').${FROM_EMAIL}
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256; boundary="=-=-=";
protocol="application/pgp-signature"