[Context] How to ignore specific tree when extracting version from SVN?
Hello, When building the binaries for minimals I decided to use the latest SVN version of XeTeX. On the server I use: cd TRUNK && svn info | grep "Last Changed Rev:" | sed 's/^Last Changed Rev: \(.*\)$/\1/' && cd .. to determine version of XeTeX and whenever the version changes it triggers rebuilding the binaries. But I just figured out that since Jonathan's last commit about two months ago there have been 71 SVN commits into polyglossia (8) and xepersian (all the rest). This means that any fluent binary builder had to compile XeTeX 71 times (and SVN had to store changes) in the last two months for nothing as texmf tree doesn't influence the binaries. On the contrary, ignoring any changes in texmf tree would mean compiling it just twice or so since August. Any volunteer to send me one-liner to fix that? I'm able to write a ruby script to filter that out, but I'm sure that there must be some extremely simple one-liner (or three-liner) in bash to solve that. Thanks a lot for any hints, Mojca
Any volunteer to send me one-liner to fix that? I'm able to write a ruby script to filter that out, but I'm sure that there must be some extremely simple one-liner (or three-liner) in bash to solve that.
All the actual source code resides in texk and libs. So you may want to simply run svn info in those two directories and compute the maximum of the respective last revisions (in that case, 820, last November). Arthur
On Sun, Feb 15, 2009 at 16:29, Arthur Reutenauer wrote:
Any volunteer to send me one-liner to fix that? I'm able to write a ruby script to filter that out, but I'm sure that there must be some extremely simple one-liner (or three-liner) in bash to solve that.
All the actual source code resides in texk and libs. So you may want to simply run svn info in those two directories and compute the maximum of the respective last revisions (in that case, 820, last November).
Thanks, After some thinking I ended up with this: > svn log -q -r HEAD:800 | grep jonathan | head -n 1 r820 | jonathan | 2008-11-17 22:55:01 +0100 (Mon, 17 Nov 2008) (most probably because I wasn't sure how to compute max in a shell and partially also because there could be other changes, in build-xetex for example :) But I will probably switch to your idea. I just need to reduce the necessity of recompiling XeTeX quickly and this was the shortest code in shortest time. I'm also collecting ideas how to handle luatex, but that will be another thread (I will most probably be offline between 19th and 6th, so if you need any other changes, ask now :). Mojca
Hi,
All the actual source code resides in texk and libs. So you may want to simply run svn info in those two directories and compute the maximum of the respective last revisions (in that case, 820, last November).
IIRC you can do this with svnversion. Patrick
participants (3)
-
Arthur Reutenauer
-
Mojca Miklavec
-
Patrick Gundlach