mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit d23c7d2bfdd33eeb01181e70dc2e41e961a91e13
parent 362c56a74ec5b66d1866c4ba43ab2795300504e9
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Mon,  2 Jan 2017 13:51:31 +0100

add a header

Diffstat:
svn-poll | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/svn-poll b/svn-poll @@ -60,6 +60,8 @@ then exit 0 fi +HEADER=0 + # ok, so we have revisions to go over... svn log --xml -r$(($SEEN+1)):$LATEST "$URL" | xmlstarlet sel -t -m '//log/logentry' \ @@ -79,6 +81,11 @@ do # we notify and mute if [[ "$author" != "$USER" ]] then + if [ $HEADER -ne 0 ] + then + echo "### updates on $URL ($USER) ###" + HEADER="1" + fi # notify the revision svn log -v -r$revision "$URL" # show a diff with no colors