diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-08-26 14:40:42 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-08-26 14:40:42 (EDT) |
commit | 15898b3b376a639f7e21388d2aa18fa89c9dc7c5 (patch) | |
tree | 41c37cba9fa10bc7dbad706e6a2de2dca8de47ce /scripts | |
parent | 7126131e688a3eca10c77a97c1aad4b70f37a7eb (diff) |
scripts/announce-release.sh: New file
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/announce-release.sh | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/scripts/announce-release.sh b/scripts/announce-release.sh new file mode 100755 index 0000000..d013337 --- /dev/null +++ b/scripts/announce-release.sh @@ -0,0 +1,57 @@ +#!/bin/sh + +package="${1}" +version="${2}" +package_name="${3}" +srcdir="${0%/scripts/announce-release.sh}" + +about="$(sed -n '4,${ /^Copyright/q; p; }' "${srcdir}/README")" +news="$(sed -n '6,${ /^ProteanOS Development Kit/q; /^Copyright/q; p; }' \ + "${srcdir}/NEWS")" + +/usr/sbin/sendmail \ + -f pj+proteanos-ml@pehjota.net proteanos-dev@lists.proteanos.com <<-EOF + Date: $(LC_ALL='POSIX' date '+%a, %d %b %Y %H:%M:%S %z') + From: "Patrick 'P. J.' McDermott" <pj+proteanos-ml@pehjota.net> + To: proteanos-dev@lists.proteanos.com + Subject: ${package_name} ${version} released + + About + ===== + + ${about} + + Downloading + =========== + + Source archives are available from the files site by HTTP or FTP: + + http://files.proteanos.com/pub/${package}/${version}/ + ftp://files.proteanos.com/pub/${package}/${version}/ + + Here are the MD5 checksums: + + $(sed 's/^/ /' MD5SUMS) + + Here are the SHA-256 checksums: + + $(sed 's/^/ /' SHA256SUMS) + + The sources are maintained in a Git repository: + + http://git.proteanos.com/${package}/${package}.git/ + git://git.proteanos.com/${package}/${package}.git/ + + This release is marked by the "${package}/${version}" tag. + + NEWS for Version ${version} + =================$(printf '%s\n' "${version}" | sed 's/./=/g') + + ${news} + + -- $(: Just something to follow the trailing space) + Patrick "P. J." McDermott + http://www.pehjota.net/ + Lead Developer, ProteanOS + http://www.proteanos.com/ + EOF |