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