svnup.sh
author miham
Thu, 15 Feb 2007 07:08:22 +0000
changeset 6019 1422a34ad091
parent 1583 7617a49e78e8
permissions -rwxr-xr-x
(svn r8742) -Update: WebTranslator2 update to 2007-02-15 08:05:58
american - 3 fixed by WhiteRabbit (3)
brazilian_portuguese - 2 fixed, 7 changed by tucalipe (9)
czech - 3 fixed, 3 deleted, 1 changed by Hadez (7)
estonian - 3 fixed by vermon (3)
french - 3 fixed, 13 changed by Skiper (16)
german - 3 fixed by moewe2 (3)
icelandic - 122 fixed, 11 changed by scrooge (133)
polish - 3 fixed by meush (3)
portuguese - 3 fixed by izhirahider (3)
simplified_chinese - 3 fixed by Fishingsnow (3)
slovenian - 3 fixed, 1 deleted by Necrolyte (4)
spanish - 4 fixed by eusebio (4)
swedish - 4 fixed by daishan (4)
traditional_chinese - 3 fixed by sam0737 (3)
#!/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 now
Base=`svn info | grep "Revision" | xargs -n 1 | tail -n 1`

# updates the source
svn update > svn.log
cat svn.log

# if the revision number changed
if [ "$Base" -ne "`svn info | grep "Revision" | xargs -n 1 | tail -n 1`" ]; then
# displays the log changes
svn log -v -r HEAD:$(($Base + 1))
fi

# displays merged files
cat svn.log|grep "^G"
cat svn.log|grep "^C"

) | $PAGER