svnup.sh
author rubidium
Sat, 12 Apr 2008 22:28:07 +0000
branchnoai
changeset 10146 ddbb8d2ae3ea
parent 1583 3e1dc56326ae
permissions -rwxr-xr-x
(svn r12677) [NoAI] -Change [API CHANGE]: rework of the OrderFlags to support the new order possibilities in OpenTTD. As a result of this the following has changed:
* AIOF_UNLOAD and AIOF_TRANSFER cannot be used at the same time anymore. Use AIOF_NO_LOAD and AIOF_TRANSFER for the same result.
* AIOF_FULL_LOAD will now always full load the vehicle and not full load any when the corresponding patch setting has been set. Full load any can be achieved with AIOF_FULL_LOAD_ANY.
* AIOF_NON_STOP has been replaced by AIOF_NON_STOP_AT_INTERMEDIATE_STATIONS and AIOF_NON_STOP_AT_DESTINATION_STATION instead of determining the non-stop workings based on a patch setting.
#!/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