svnup.sh
changeset 1488 106507985f99
parent 335 cf36f9ff795c
child 1583 7617a49e78e8
equal deleted inserted replaced
1487:4d76c7c82cfb 1488:106507985f99
     1 #!/bin/sh
     1 #!/bin/sh
     2 # This script updates the svn source and displays log changes
     2 # This script updates the svn source and displays log changes
     3 # This is only useful for users of CLI based SVN clients
     3 # This is only useful for users of CLI based SVN clients
     4 # Written by Bjarni
     4 # Written by Bjarni
     5 
     5 
       
     6 [ "$PAGER" ] || PAGER=less
       
     7 
       
     8 
       
     9 (
     6 
    10 
     7 # reads what version you have now
    11 # reads what version you have now
     8 Base=`svn info | grep "Revision" | xargs -n 1 | tail -n 1`
    12 Base=`svn info | grep "Revision" | xargs -n 1 | tail -n 1`
     9 
    13 
    10 # updates the source
    14 # updates the source
    18 fi
    22 fi
    19 
    23 
    20 # displays merged files
    24 # displays merged files
    21 cat svn.log|grep "^G"
    25 cat svn.log|grep "^G"
    22 cat svn.log|grep "^C"
    26 cat svn.log|grep "^C"
       
    27 
       
    28 ) | $PAGER