author | tron |
Wed, 03 Nov 2004 21:50:21 +0000 | |
changeset 335 | f3298fda6c37 |
parent 113 | cc110ea79126 |
child 1488 | cf51e91f3b98 |
permissions | -rwxr-xr-x |
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 | 2 |
# This script updates the svn source and displays log changes |
3 |
# This is only useful for users of CLI based SVN clients |
|
4 |
# Written by Bjarni |
|
5 |
||
6 |
||
7 |
# reads what version you have now |
|
8 |
Base=`svn info | grep "Revision" | xargs -n 1 | tail -n 1` |
|
9 |
||
10 |
# updates the source |
|
113
cc110ea79126
(svn r114) updated svnup.sh to display merged files (blathijs)
bjarni
parents:
0
diff
changeset
|
11 |
svn update > svn.log |
cc110ea79126
(svn r114) updated svnup.sh to display merged files (blathijs)
bjarni
parents:
0
diff
changeset
|
12 |
cat svn.log |
0 | 13 |
|
14 |
# if the revision number changed |
|
15 |
if [ "$Base" -ne "`svn info | grep "Revision" | xargs -n 1 | tail -n 1`" ]; then |
|
16 |
# displays the log changes |
|
17 |
svn log -r HEAD:$(($Base + 1)) |
|
18 |
fi |
|
113
cc110ea79126
(svn r114) updated svnup.sh to display merged files (blathijs)
bjarni
parents:
0
diff
changeset
|
19 |
|
cc110ea79126
(svn r114) updated svnup.sh to display merged files (blathijs)
bjarni
parents:
0
diff
changeset
|
20 |
# displays merged files |
cc110ea79126
(svn r114) updated svnup.sh to display merged files (blathijs)
bjarni
parents:
0
diff
changeset
|
21 |
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
|
22 |
cat svn.log|grep "^C" |