From 32362367c62c1ed588e1a5697450e0ec3ad61847 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 18 Mar 2019 21:34:27 -0400 Subject: scripts/announce-release.sh: Parameterize from/to info --- 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 - 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" -- cgit v0.9.1