tron@335: #!/bin/sh 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: pasky@1488: [ "$PAGER" ] || PAGER=less pasky@1488: pasky@1488: pasky@1488: ( 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 bjarni@113: svn update > svn.log bjarni@113: cat svn.log 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 pasky@1583: svn log -v -r HEAD:$(($Base + 1)) truelight@0: fi bjarni@113: bjarni@113: # displays merged files bjarni@113: cat svn.log|grep "^G" tron@335: cat svn.log|grep "^C" pasky@1488: pasky@1488: ) | $PAGER