]> andersk Git - test.git/commitdiff
Add automatic notification about new releases.
authorMarkus Gutschke <markus@shellinabox.com>
Fri, 16 Jul 2010 16:20:52 +0000 (16:20 +0000)
committerMarkus Gutschke <markus@shellinabox.com>
Fri, 16 Jul 2010 16:20:52 +0000 (16:20 +0000)
commit

diff --git a/commit b/commit
index 5296648bf86480e29e743adb0358a95b35f62557..a89b045a6d978eb3c1a268d8789fc7e3df2ca357 100755 (executable)
--- 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|^[?]' |
This page took 0.03373 seconds and 5 git commands to generate.