/[webwml]/cron/parts/999Xmonitor
ViewVC logotype

Contents of /cron/parts/999Xmonitor

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Apr 2 10:58:23 2011 UTC (2 years, 1 month ago) by spaillard
Branch: MAIN
Changes since 1.5: +1 -1 lines
Fix typo in debian-doc list
1 #! /bin/sh
2
3 # Copyright 2001,2,3,8 Martin Schulze <joey@debian.org>
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 from='Debian Webmaster <webmaster@debian.org>'
20 mailto=webwml-monitor@www-master.debian.org
21 xloop=debian-www@lists.debian.org
22 regexp='\(Break\|ignored\|Error\|ERROR\)'
23
24 . `dirname $0`/../common.sh
25
26 logfile=${webtopdir}/cron/log/wml_run.log
27
28 if grep -q "$regexp" $logfile
29 then
30 (
31 echo "From: $from"
32 echo "To: $mailto"
33 echo "X-Loop: $xloop"
34 echo "Subject: webwml failed"
35 echo
36 grep -A 4 -B 15 "$regexp" $logfile
37 ) | /usr/sbin/sendmail -t
38 fi
39
40 # DDP build logs
41 mailto=ddp-build@lists.alioth.debian.org
42 mailto=debian-doc@lists.debian.org
43 logfile="${webtopdir}/release-notes/build.log ${webtopdir}/ddp-svn/make.log"
44 regexp='\(Break\|Error\|ERROR\)'
45
46 if grep -q "$regexp" $logfile
47 then
48 (
49 echo "From: $from"
50 echo "To: $mailto"
51 echo "X-Loop: $xloop"
52 echo "Subject: ddp build failed"
53 echo
54 grep -A 4 -B 15 "$regexp" $logfile
55 ) | /usr/sbin/sendmail -t
56 fi
57

  ViewVC Help
Powered by ViewVC 1.1.5