#!/bin/sh# This script updates the svn source and displays log changes# This is only useful for users of CLI based SVN clients# Written by Bjarni["$PAGER"]||PAGER=less
(# reads what version you have nowBase=`svn info | grep "Revision"| xargs -n 1| tail -n 1`# updates the sourcesvn update > svn.log
cat svn.log
# if the revision number changedif["$Base" -ne "`svn info | grep "Revision" | xargs -n 1 | tail -n 1`"];then# displays the log changessvn log -v -r HEAD:$(($Base+1))fi# displays merged filescat svn.log|grep "^G"cat svn.log|grep "^C")|$PAGER