Author: tille
Date: Fri Nov 26 10:39:40 2010
New Revision: 2496
URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=2496
Log:
Enable sending mail to different address than packaging list
Modified:
blends/trunk/webtools/new_upstream
blends/trunk/webtools/webconf/debian-edu.conf
blends/trunk/webtools/webconf/debian-med.conf
blends/trunk/webtools/webconf/debian-science.conf
Modified: blends/trunk/webtools/new_upstream
URL:
http://svn.debian.org/wsvn/blends/blends/trunk/webtools/new_upstream?rev=2496&op=diff
==============================================================================
--- blends/trunk/webtools/new_upstream (original)
+++ blends/trunk/webtools/new_upstream Fri Nov 26 10:39:40 2010
@@ -4,19 +4,25 @@
if [ "$1" = "" ] ; then
echo "Usage: `basename $0` <projectname>"
- exit -1
+ exit 1
fi
conffile="webconf/$1.conf"
if [ ! -s "$conffile" ] ; then
echo "Missing or empty config file $conffile"
- exit -1
+ exit 1
fi
-if ! grep -iq
"^PkgList[[:space:]]*:[[:space:]]*[^[:space:]...@[^[:space:]]\+\.[^[:space:]]\+$"
$conffile ; then
- echo "Config file $conffile does not contain valid PkgList field."
- exit -1
+
+if ! grep -iq
"^DehsMail[[:space:]]*:[[:space:]]*[^[:space:]...@[^[:space:]]\+\.[^[:space:]]\+$"
$conffile ; then
+ if ! grep -iq
"^PkgList[[:space:]]*:[[:space:]]*[^[:space:]...@[^[:space:]]\+\.[^[:space:]]\+$"
$conffile ; then
+ echo "Config file $conffile does not contain valid DehsMail or PkgList
field."
+ exit 1
+ fi
+ SENDDEHS=`grep -i "^PkgList" $conffile | head -n 1 | sed
s/^PkgList[[:space:]]*:[[:space:]]*//`
+else
+ SENDDEHS=`grep -i "^DehsMail" $conffile | head -n 1 | sed
s/^DehsMail[[:space:]]*:[[:space:]]*//`
fi
./new_upstream.py $1 \
| grep -v -e "^Unknown key" \
-e "^Hint: WNPP for package" \
- | mailx -s "Updatable packages of $1" [email protected]
+ | mailx -s "Updatable packages of $1" $SENDDEHS
Modified: blends/trunk/webtools/webconf/debian-edu.conf
URL:
http://svn.debian.org/wsvn/blends/blends/trunk/webtools/webconf/debian-edu.conf?rev=2496&op=diff
==============================================================================
--- blends/trunk/webtools/webconf/debian-edu.conf (original)
+++ blends/trunk/webtools/webconf/debian-edu.conf Fri Nov 26 10:39:40 2010
@@ -10,3 +10,4 @@
VcsDir: /svn/debian-edu/trunk/src/debian-edu
CSS: ../inc/style.css
PkgList: [email protected]
+DehsMail: [email protected]
Modified: blends/trunk/webtools/webconf/debian-med.conf
URL:
http://svn.debian.org/wsvn/blends/blends/trunk/webtools/webconf/debian-med.conf?rev=2496&op=diff
==============================================================================
--- blends/trunk/webtools/webconf/debian-med.conf (original)
+++ blends/trunk/webtools/webconf/debian-med.conf Fri Nov 26 10:39:40 2010
@@ -12,3 +12,4 @@
CSS: ../inc/style.css
Advertising: _('Help us to see Debian used by medical practicioners and
researchers! Join us on the <a
href=\"http://alioth.debian.org/projects/debian-med\">Alioth page</a>.')
PkgList: [email protected]
+DehsMail: [email protected]
Modified: blends/trunk/webtools/webconf/debian-science.conf
URL:
http://svn.debian.org/wsvn/blends/blends/trunk/webtools/webconf/debian-science.conf?rev=2496&op=diff
==============================================================================
--- blends/trunk/webtools/webconf/debian-science.conf (original)
+++ blends/trunk/webtools/webconf/debian-science.conf Fri Nov 26 10:39:40 2010
@@ -9,3 +9,4 @@
VcsDir: /svn/blends/projects/science/trunk/debian-science
CSS: ../inc/style.css
PkgList: [email protected]
+DehsMail: [email protected]
_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/blends-commit