changelog-report
资源名称:gateway-1.2.1 [点击查看]
上传用户:gzpyjq
上传日期:2013-01-31
资源大小:1852k
文件大小:1k
源码类别:
手机WAP编程
开发平台:
WINDOWS
- #!/bin/sh
- #
- # changelog-report - Report changes to ChangeLog
- #
- # DO NOT RUN THIS SCRIPT unless you make damn sure the e-mail address points
- # at somewhere who wants to receive it.
- #
- # This script reports changes to the ChangeLog file in the Kannel CVS
- # repository.
- #
- # Lars Wirzenius <liw@wapit.com>
- #
- set -e
- addr=""
- workdir="$HOME/gateway"
- tmp=ChangeLog.temp
- cd $workdir
- cvs -Q update ChangeLog
- diff -w -b -B -t ChangeLog.old ChangeLog | sed -n '/^> /s///p' >> $tmp || true
- if test -s $tmp
- then
- (
- echo 'Changes to gateway ChangeLog.'
- echo ''
- cat $tmp
- ) | mail -s 'ChangeLog update' $addr
- fi
- cp ChangeLog ChangeLog.old
- rm -f $tmp