summaryrefslogtreecommitdiffstats
path: root/scripts/announce-release.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/announce-release.sh')
-rwxr-xr-xscripts/announce-release.sh21
1 files changed, 18 insertions, 3 deletions
diff --git a/scripts/announce-release.sh b/scripts/announce-release.sh
index d013337..a718cc6 100755
--- a/scripts/announce-release.sh
+++ b/scripts/announce-release.sh
@@ -5,9 +5,24 @@ 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")"
+about="$(sed -n '
+ H;
+ ${
+ g;
+ s/^\n*[^\n][^\n]*\n[=-][=-]*\n\n*//;
+ s/\n*[^\n][^\n]*\n[=-][=-]*\n.*$//;
+ p;
+ };
+ ' "${srcdir}/README")"
+news="$(sed -n '
+ H;
+ ${
+ g;
+ s/^\n*[^\n][^\n]*\n[=-][=-]*\n\n*//;
+ s/\n*[^\n][^\n]*\n[=-][=-]*\n.*$//;
+ p;
+ };
+ ' "${srcdir}/NEWS")"
/usr/sbin/sendmail \
-f pj+proteanos-ml@pehjota.net proteanos-dev@lists.proteanos.com <<-EOF