[Blends-commit] r2496 - in /blends/trunk/webtools: new_upstream webconf/debian-edu.conf webconf/debian-med.conf webconf/debian-science.conf

tille at users.alioth.debian.org tille at users.alioth.debian.org
Fri Nov 26 10:39:40 UTC 2010


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" tille at debian.org
+  | 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:     debian-edu at lists.debian.org
+DehsMail:    tille at debian.org

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:     debian-med-packaging at lists.alioth.debian.org
+DehsMail:    tille at debian.org

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:     debian-science-maintainers at lists.alioth.debian.org
+DehsMail:    tille at debian.org




More information about the Blends-commit mailing list