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.
335
f3298fda6c37 (svn r504) The Bourne Shell ist spelled 'sh', not 'bash'; even if there is a 'bash', on most systems it's not in /bin
tron
parents: 113
diff changeset
     1
#!/bin/sh
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     2
# This script updates the svn source and displays log changes
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     3
# This is only useful for users of CLI based SVN clients
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     4
# Written by Bjarni
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     5
1488
cf51e91f3b98 (svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky
parents: 335
diff changeset
     6
[ "$PAGER" ] || PAGER=less
cf51e91f3b98 (svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky
parents: 335
diff changeset
     7
cf51e91f3b98 (svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky
parents: 335
diff changeset
     8
cf51e91f3b98 (svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky
parents: 335
diff changeset
     9
(
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    10
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    11
# reads what version you have now
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    12
Base=`svn info | grep "Revision" | xargs -n 1 | tail -n 1`
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    13
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    14
# updates the source
113
cc110ea79126 (svn r114) updated svnup.sh to display merged files (blathijs)
bjarni
parents: 0
diff changeset
    15
svn update > svn.log
cc110ea79126 (svn r114) updated svnup.sh to display merged files (blathijs)
bjarni
parents: 0
diff changeset
    16
cat svn.log
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    17
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    18
# if the revision number changed
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    19
if [ "$Base" -ne "`svn info | grep "Revision" | xargs -n 1 | tail -n 1`" ]; then
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    20
# displays the log changes
1583
3e1dc56326ae (svn r2087) Show also the modified filenames along each change in svn log. Prevents enraging Darkvater, and we show the commit messages along changed files everywhere else too (on IRC and in mail).
pasky
parents: 1488
diff changeset
    21
svn log -v -r HEAD:$(($Base + 1))
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    22
fi
113
cc110ea79126 (svn r114) updated svnup.sh to display merged files (blathijs)
bjarni
parents: 0
diff changeset
    23
cc110ea79126 (svn r114) updated svnup.sh to display merged files (blathijs)
bjarni
parents: 0
diff changeset
    24
# displays merged files
cc110ea79126 (svn r114) updated svnup.sh to display merged files (blathijs)
bjarni
parents: 0
diff changeset
    25
cat svn.log|grep "^G"
335
f3298fda6c37 (svn r504) The Bourne Shell ist spelled 'sh', not 'bash'; even if there is a 'bash', on most systems it's not in /bin
tron
parents: 113
diff changeset
    26
cat svn.log|grep "^C"
1488
cf51e91f3b98 (svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky
parents: 335
diff changeset
    27
cf51e91f3b98 (svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky
parents: 335
diff changeset
    28
) | $PAGER