annotate svnup.sh @ 5928:b6f09b339e6d draft

(svn r8565) -Fix Fix indentation
author tron <tron@openttd.org>
date Sat, 03 Feb 2007 20:15:17 +0000
parents f74b72aeef4c
children 426ed2de6f28
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
335
d57d06d1379e (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 <tron@openttd.org>
parents: 113
diff changeset
1 #!/bin/sh
0
fa6ee4d75c8a (svn r1) Import of revision 975 of old (crashed) SVN
truelight <truelight@openttd.org>
parents:
diff changeset
2 # This script updates the svn source and displays log changes
fa6ee4d75c8a (svn r1) Import of revision 975 of old (crashed) SVN
truelight <truelight@openttd.org>
parents:
diff changeset
3 # This is only useful for users of CLI based SVN clients
fa6ee4d75c8a (svn r1) Import of revision 975 of old (crashed) SVN
truelight <truelight@openttd.org>
parents:
diff changeset
4 # Written by Bjarni
fa6ee4d75c8a (svn r1) Import of revision 975 of old (crashed) SVN
truelight <truelight@openttd.org>
parents:
diff changeset
5
1488
7e948649fdd1 (svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky <pasky@openttd.org>
parents: 335
diff changeset
6 [ "$PAGER" ] || PAGER=less
7e948649fdd1 (svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky <pasky@openttd.org>
parents: 335
diff changeset
7
7e948649fdd1 (svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky <pasky@openttd.org>
parents: 335
diff changeset
8
7e948649fdd1 (svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky <pasky@openttd.org>
parents: 335
diff changeset
9 (
0
fa6ee4d75c8a (svn r1) Import of revision 975 of old (crashed) SVN
truelight <truelight@openttd.org>
parents:
diff changeset
10
fa6ee4d75c8a (svn r1) Import of revision 975 of old (crashed) SVN
truelight <truelight@openttd.org>
parents:
diff changeset
11 # reads what version you have now
fa6ee4d75c8a (svn r1) Import of revision 975 of old (crashed) SVN
truelight <truelight@openttd.org>
parents:
diff changeset
12 Base=`svn info | grep "Revision" | xargs -n 1 | tail -n 1`
fa6ee4d75c8a (svn r1) Import of revision 975 of old (crashed) SVN
truelight <truelight@openttd.org>
parents:
diff changeset
13
fa6ee4d75c8a (svn r1) Import of revision 975 of old (crashed) SVN
truelight <truelight@openttd.org>
parents:
diff changeset
14 # updates the source
113
c622d3ef3f79 (svn r114) updated svnup.sh to display merged files (blathijs)
bjarni <bjarni@openttd.org>
parents: 0
diff changeset
15 svn update > svn.log
c622d3ef3f79 (svn r114) updated svnup.sh to display merged files (blathijs)
bjarni <bjarni@openttd.org>
parents: 0
diff changeset
16 cat svn.log
0
fa6ee4d75c8a (svn r1) Import of revision 975 of old (crashed) SVN
truelight <truelight@openttd.org>
parents:
diff changeset
17
fa6ee4d75c8a (svn r1) Import of revision 975 of old (crashed) SVN
truelight <truelight@openttd.org>
parents:
diff changeset
18 # if the revision number changed
fa6ee4d75c8a (svn r1) Import of revision 975 of old (crashed) SVN
truelight <truelight@openttd.org>
parents:
diff changeset
19 if [ "$Base" -ne "`svn info | grep "Revision" | xargs -n 1 | tail -n 1`" ]; then
fa6ee4d75c8a (svn r1) Import of revision 975 of old (crashed) SVN
truelight <truelight@openttd.org>
parents:
diff changeset
20 # displays the log changes
1583
f74b72aeef4c (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 <pasky@openttd.org>
parents: 1488
diff changeset
21 svn log -v -r HEAD:$(($Base + 1))
0
fa6ee4d75c8a (svn r1) Import of revision 975 of old (crashed) SVN
truelight <truelight@openttd.org>
parents:
diff changeset
22 fi
113
c622d3ef3f79 (svn r114) updated svnup.sh to display merged files (blathijs)
bjarni <bjarni@openttd.org>
parents: 0
diff changeset
23
c622d3ef3f79 (svn r114) updated svnup.sh to display merged files (blathijs)
bjarni <bjarni@openttd.org>
parents: 0
diff changeset
24 # displays merged files
c622d3ef3f79 (svn r114) updated svnup.sh to display merged files (blathijs)
bjarni <bjarni@openttd.org>
parents: 0
diff changeset
25 cat svn.log|grep "^G"
335
d57d06d1379e (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 <tron@openttd.org>
parents: 113
diff changeset
26 cat svn.log|grep "^C"
1488
7e948649fdd1 (svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky <pasky@openttd.org>
parents: 335
diff changeset
27
7e948649fdd1 (svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky <pasky@openttd.org>
parents: 335
diff changeset
28 ) | $PAGER