Add automatic notification about new releases.

git-svn-id: https://shellinabox.googlecode.com/svn/trunk@211 0da03de8-d603-11dd-86c2-0f8696b7b6f9
This commit is contained in:
zodiac@gmail.com 2010-07-16 16:20:52 +00:00
parent 445d3c66a6
commit 21cfbec230

17
commit
View file

@ -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|^[?]' |