Debian Codegraph @

utils/changelog-report

raw
1 #!/bin/sh
2 #
3 # changelog-report - Report changes to ChangeLog
4 #
5 # DO NOT RUN THIS SCRIPT unless you make damn sure the e-mail address points
6 # at somewhere who wants to receive it.
7 #
8 # This script reports changes to the ChangeLog file in the Kannel CVS
9 # repository.
10 #
11 # Lars Wirzenius <[email protected]>
12 #
13
14 set -e
15
16 addr=""
17 workdir="$HOME/gateway"
18
19 tmp=ChangeLog.temp
20
21 cd $workdir
22 cvs -Q update ChangeLog
23 diff -w -b -B -t ChangeLog.old ChangeLog | sed -n '/^> /s///p' >> $tmp || true
24 if test -s $tmp
25 then
26 (
27 echo 'Changes to gateway ChangeLog.'
28 echo ''
29 cat $tmp
30 ) | mail -s 'ChangeLog update' $addr
31 fi
32 cp ChangeLog ChangeLog.old
33 rm -f $tmp