[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: "missing" feature

From: Richard Lewis <rtf_at_jabble.com>
Date: 2004-05-06 15:30:46 CEST

Svenne Krap <svenne@krap.dk> writes:

> A whole tree might be a "single file" (or unit) logically (for example
> LaTeX documents, or perhaps a PHP website - not everything uses/has a
> build system)

For LaTeX, the `build system' is the running of latex (and friends),
so you could have something like

\immediate\write18{%
  echo "\string\newcommand{\string\version}{`/usr/bin/svnversion .`}" > ./ver.tex
}
\input{./ver.tex}

at the top of your main document, and then \version will give you the
output of svnversion (don't forget to give latex the --shell-escape
option to enable \write18)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri May 7 00:02:44 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.