svnup.sh
author translators
Fri, 28 Nov 2008 18:47:49 +0000
changeset 10389 05465e8a465c
parent 1583 7617a49e78e8
permissions -rwxr-xr-x
(svn r14640) -Update: WebTranslator2 update to 2008-11-28 18:47:35
bulgarian - 1 fixed by Ar4i (1)
catalan - 1 fixed by arnaullv (1)
croatian - 43 fixed by knovak (43)
esperanto - 3 fixed by Athaba (3)
estonian - 8 fixed by t2t2 (8)
german - 1 fixed by Athaba (1)
latvian - 315 fixed, 112 changed by Reinis (414), yopzer (7), niko (6)
polish - 1 fixed by xaxa (1)
romanian - 6 fixed, 1 changed by kkmic (7)
ukrainian - 2 fixed by mad (2)
#!/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