svnup.sh
author translators
Thu, 30 Oct 2008 18:27:17 +0000
changeset 10306 38e0bf4a820e
parent 1583 7617a49e78e8
permissions -rwxr-xr-x
(svn r14549) -Update: WebTranslator2 update to 2008-10-30 18:25:24
croatian - 9 fixed by tperic (9)
ido - 13 fixed by Cecile (13)
indonesian - 219 fixed by dnaftali (219)
italian - 1 changed by lorenzodv (1)
korean - 2 changed by dlunch (2)
latvian - 168 fixed, 22 changed by Wersoo (119), v3rb0 (71)
persian - 99 fixed by ali sattari (99)
swedish - 3 changed by Andreas (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