author | KUDr |
Tue, 27 Feb 2007 13:26:47 +0000 | |
branch | cpp_gui |
changeset 6263 | 19dab6a68886 |
parent 1583 | 3e1dc56326ae |
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 |
||
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 | 10 |
|
11 |
# reads what version you have now |
|
12 |
Base=`svn info | grep "Revision" | xargs -n 1 | tail -n 1` |
|
13 |
||
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 | 17 |
|
18 |
# if the revision number changed |
|
19 |
if [ "$Base" -ne "`svn info | grep "Revision" | xargs -n 1 | tail -n 1`" ]; then |
|
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 | 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 |