svnup.sh
author truebrain
Tue, 20 May 2008 13:09:34 +0000
branchnoai
changeset 10649 9034b80fdbdb
parent 1583 3e1dc56326ae
permissions -rwxr-xr-x
(svn r13193) [NoAI] -Add: allow AIs to be packed in a .tar. one AI per tar, always in a subdir. It looks for main.nut in the first dir it finds in the archive
[NoAI] -Add: search for AIs in all searchpaths of OpenTTD
[NoAI] -Fix: only do the initial search once at start-up, not at some random times over time
[NoAI] -Fix: don't compile the sqstdlib files that are never used; this to speed up compilation time
[NoAI] -Fix: *grrmmmm* (very silent talking) forgot svn-props and stuff on ai_info.[ch]pp
#!/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