svnup.sh
author miham
Fri, 02 Feb 2007 06:42:55 +0000
changeset 5904 17ba38dccdb3
parent 1583 7617a49e78e8
permissions -rwxr-xr-x
(svn r8527) -Update: WebTranslator2 update to 2007-02-02 07:41:47
brazilian_portuguese - 6 fixed, 363 changed by fukumori (369)
bulgarian - 6 fixed by groupsky (6)
catalan - 6 fixed by arnaullv (6)
croatian - 54 fixed, 3 changed by tperic (57)
czech - 6 fixed by Hadez (6)
danish - 2 fixed, 1 changed by MiR (3)
dutch - 2 fixed by habell (2)
estonian - 6 fixed by kristjans (6)
french - 4 fixed by glx (4)
german - 6 fixed, 2 changed by Neonox (8)
hungarian - 2 fixed by miham (2)
italian - 6 fixed, 4 changed by lorenzodv (6), sidew (4)
japanese - 6 fixed by ickoonite (6)
polish - 4 fixed by meush (4)
simplified_chinese - 6 fixed by Fishingsnow (6)
slovenian - 39 fixed, 1 deleted, 2 changed by Necrolyte (42)
turkish - 6 fixed by jnmbk (6)
ukrainian - 41 fixed, 1 deleted, 22 changed by znikoz (1), mad (63)
#!/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