Mercurial > hg > openttd
annotate svnup.sh @ 5787:26da4d1baaed draft
(svn r8339) -Fix(r8331): MSVC seems to be a little more strict (or less intelligent) then other compilers when it comes to operator precedence.
A copy of code from train_gui.cpp to build_vehicle_gui.cpp was not exactly the same.
The earlier version did not require parenthesis to specify correct operator precedence.
author | belugas <belugas@openttd.org> |
---|---|
date | Mon, 22 Jan 2007 02:59:50 +0000 |
parents | f74b72aeef4c |
children | 426ed2de6f28 |
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 |