truelight@0: #!/bin/bash truelight@0: # This script updates the svn source and displays log changes truelight@0: # This is only useful for users of CLI based SVN clients truelight@0: # Written by Bjarni truelight@0: truelight@0: truelight@0: # reads what version you have now truelight@0: Base=`svn info | grep "Revision" | xargs -n 1 | tail -n 1` truelight@0: truelight@0: # updates the source truelight@0: svn update truelight@0: truelight@0: # if the revision number changed truelight@0: if [ "$Base" -ne "`svn info | grep "Revision" | xargs -n 1 | tail -n 1`" ]; then truelight@0: # displays the log changes truelight@0: svn log -r HEAD:$(($Base + 1)) truelight@0: fi