author | truelight |
Thu, 24 Mar 2005 14:43:40 +0000 | |
changeset 1540 | 6eef12dab5bf |
parent 1488 | 106507985f99 |
child 1583 | 7617a49e78e8 |
permissions | -rwxr-xr-x |
335
cf36f9ff795c
(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
106507985f99
(svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky
parents:
335
diff
changeset
|
6 |
[ "$PAGER" ] || PAGER=less |
106507985f99
(svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky
parents:
335
diff
changeset
|
7 |
|
106507985f99
(svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky
parents:
335
diff
changeset
|
8 |
|
106507985f99
(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 |
|
21 |
svn log -r HEAD:$(($Base + 1)) |
|
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
cf36f9ff795c
(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
106507985f99
(svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky
parents:
335
diff
changeset
|
27 |
|
106507985f99
(svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
pasky
parents:
335
diff
changeset
|
28 |
) | $PAGER |