svnup.sh
author tron
Sun, 23 Jan 2005 15:16:47 +0000
changeset 1115 36d85d14d44b
parent 335 f3298fda6c37
child 1488 cf51e91f3b98
permissions -rwxr-xr-x
(svn r1616) Introduce ttd_strlcat() and use it to de-uglify some piece of code in misc_cmd.
While here rename the len parameter of ttd_strlcpy() to size, because it is a buffer size and not a string length.
Also add -Wwrite-strings to the Makefile, because the above mentioned piece of code was the only part which triggered this warning.
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
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
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"