Hi,
Below is a svn update script for *nix based systems. I often want to check the logs after I did a update, to see what changed. I then sit with the problem, that I can't remember the revision I upgraded from. This doesn't just relate to Lazarus subversion, but to many other projects as well. Anyway, this little script will report the before and after revision once the update is complete.. I thought someone might find this handy.
--------------------[ svnup.sh ]---------------------------- #!/bin/bash
oldrev=$(svn info |grep '^Revision: '|sed 's/Revision: //g')
svn up
newrev=$(svn info |grep '^Revision: '|sed 's/Revision: //g')
[ "$oldrev" == "$newrev" ] || {
echo " "
echo "Made the step from $oldrev to $newrev "
}
--------------------[ end ]----------------------------
Here is a sample of the output...
--------------------[ start ]---------------------------- $> svnup.sh
...
U lcl/lconvencoding.pas
U lcl/controls.pp
U packager/packagesystem.pas
A examples/synpositionhighlighter
A examples/synpositionhighlighter/unit1.lrs
A examples/synpositionhighlighter/unit1.pas
A examples/synpositionhighlighter/unit1.lfm
Updated to revision 15901.
Made the step from 15864 to 15901
--------------------[ end ]----------------------------
:-)
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
