svnup.sh
author pasky
Sat, 05 Mar 2005 13:49:43 +0000
changeset 1421 0532cbf429f1
parent 335 cf36f9ff795c
child 1488 106507985f99
permissions -rwxr-xr-x
(svn r1925) Fixed an infinite loop if the town generator runs out of town names. The number of generated towns is then limited by the number of available names.
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"