From: Stephen Rothwell Date: Wed, 27 Aug 2014 04:41:52 +0000 (+1000) Subject: final_msg: make a backup for comaprison if needed X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=66249a51646b3b8b063a0b3c10ef69e78d2fcd61;p=next-scripts final_msg: make a backup for comaprison if needed --- diff --git a/final_msg b/final_msg index 5e00dda..89ebc0d 100755 --- a/final_msg +++ b/final_msg @@ -10,11 +10,12 @@ nmc=$(git rev-list --no-merges --count origin/master..HEAD^) ss=$(git diff --shortstat -M -C origin/master..HEAD^) ntrees=$(wc -l <../etc/control) -sed -e 's/^\(Changes since\) [0-9]*:/\1 '"$prev"':/' \ +sed -i.bak -e 's/^\(Changes since\) [0-9]*:/\1 '"$prev"':/' \ -e 's/^\(Non-merge commits .*:\) [0-9]*/\1 '"$nmc"'/'\ -e 's/^ *[0-9]* files changed,.*$/'"$ss"'/' \ -e 's/^\(I am currently merging\) [0-9]* /\1 '"$ntrees"' /' \ - ../last_msg | - $(dirname $0)/send_email "$to" "$cc" "$subject" + ../last_msg + +$(dirname $0)/send_email "$to" "$cc" "$subject" <../last_msg exit 0