Files @ r8173:5e0fda7e7831
Branch filter:

Location: cpp/openttd-patchpack/source/svnup.sh

miham
(svn r11736) -Update: WebTranslator2 update to 2008-01-01 17:42:54
catalan - 1 fixed by arnaullv (1)
german - 4 fixed by chu (4)
hungarian - 23 fixed by miham (23)
romanian - 17 fixed, 2 changed by kneekoo (19)
slovenian - 1 fixed by Necrolyte (1)
#!/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