svnup.sh
author darkvater
Fri, 12 Nov 2004 19:03:37 +0000
changeset 363 2a01c271fe2d
parent 335 cf36f9ff795c
child 1488 106507985f99
permissions -rwxr-xr-x
(svn r551) -newgrf: Preliminary support for TTDPatch flags checking (we just pretend that a bunch of things are on and the rest is off and that's it). Patch by octo, small cleanup by pasky.
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
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     2
# This script updates the svn source and displays log changes
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     3
# This is only useful for users of CLI based SVN clients
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     4
# Written by Bjarni
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     5
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     6
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     7
# reads what version you have now
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     8
Base=`svn info | grep "Revision" | xargs -n 1 | tail -n 1`
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     9
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    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
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    13
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    14
# if the revision number changed
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    15
if [ "$Base" -ne "`svn info | grep "Revision" | xargs -n 1 | tail -n 1`" ]; then
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    16
# displays the log changes
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    17
svn log -r HEAD:$(($Base + 1))
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    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
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
    22
cat svn.log|grep "^C"