Files @ r7427:ba81c1526dc5
Branch filter:

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

miham
(svn r10828) -Update: WebTranslator2 update to 2007-08-08 23:27:26
brazilian_portuguese - 3 changed by fukumori (3)
bulgarian - 24 fixed by kokobongo (7), thetitan (17)
estonian - 1 changed by kristjans (1)
german - 564 changed by Timwi (564)
polish - 11 fixed, 34 changed by meush (45)
russian - 1 changed by DarkFenX (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