From 21cfbec230554b64ab129b268b885d0d18410508 Mon Sep 17 00:00:00 2001 From: "zodiac@gmail.com" Date: Fri, 16 Jul 2010 16:20:52 +0000 Subject: [PATCH] Add automatic notification about new releases. git-svn-id: https://shellinabox.googlecode.com/svn/trunk@211 0da03de8-d603-11dd-86c2-0f8696b7b6f9 --- commit | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/commit b/commit index 5296648..a89b045 100755 --- a/commit +++ b/commit @@ -182,9 +182,24 @@ make all distcheck # Build Debian package and create all the files that are needed by the # distribution maintainer. msg= -debian_package || +debian_package || { msg="${msg} NOTICE: New version released. Please do not forget to notify distributions" + if [ -r ~/.shellinabox-notifier ]; then + while read e; do + { + echo "This is an automatically generated e-mail notification that" + echo "a new release of ShellInABox has just been made available" + echo "on the project's website at http://shellinabox.com" + echo + echo "You had previously requested to be notified when this happens." + } | mail -s "New ShellInABox release" "$e" + done + else + msg="${msg} +NOTICE: Could not find ~/.shellinabox-notifier. Not sending e-mail..." + fi +} svn diff $(svn st | egrep -v ' configure$| aclocal.m4$|distributions|^[?]' |