ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Module for svn info
@ 2008-01-21 23:58 Robin Kirkham
  2008-01-22  3:10 ` Ernesto Schirmacher
  0 siblings, 1 reply; 9+ messages in thread
From: Robin Kirkham @ 2008-01-21 23:58 UTC (permalink / raw)
  To: ntg-context

Hi Markus,

If your sources are in svn, then they actually have the same svn- 
number, after a commit. But the numbers in the $Revision$ or $Id$ tags  
of your working copies are not updated by svn commit. However, if you  
do an "svn update" after the commit, it should update the numbers. So,  
you shouldn't need to work out the maximum value.

Here, we actually use the output of the "svnversion" command, save it  
automatically it in a file, and include it in the document. This way,  
the version number indicates if the document came from checked-in  
sources, modified sources, or mixed revisions. We don't have a module  
to do it, just a

     svnversion > svnversion.tex ; texexec document.tex

in the Makefile, and on the document front page somewhere

     \doiffileelse{svnversion.tex}{
        Subversion revision
        \ignorespaces \input svnversion\relax \removeunwantedspaces . 
\crlf
     }{}

Cheers,

Robin

> Hi Aditya,
>
> thanks for your reply. It's a good starting point.
>
> One thing is missing in this solution.
>
> Our documents are structured into several files.
> Every file has an svn-version. So I want to
> calculate the max version.
>
> Do you know a small example where a max value
> is calculated. I would try to integrate it into
> the other example.
>
> Kind regards,
> Markus
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread
* Module for svn info
@ 2008-01-20  2:34 Markus Bernhardt
  2008-01-20  5:11 ` Aditya Mahajan
  0 siblings, 1 reply; 9+ messages in thread
From: Markus Bernhardt @ 2008-01-20  2:34 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 828 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

is there a module to access subversion tags in context documents (like
svninfo or svnkw for latex).

Kind regards,
Markus

- --

Mit freundlichen Grüßen

Markus Bernhardt

Software Consulting
Markus Bernhardt GmbH
Spieljochstr. 34  
81825 München     

Fon: +49-89-420903-0
Fax: +49-89-420903-20
www: http://www.scmb.de    

Geschäftsführung Markus Bernhardt
Handelsregister AG München HRB 125966
USt-Id DE201885231

PGP: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89C94989
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHkrMrdnooMonJSYkRAugkAJ92g2uZQO5LmpjLLS0q9MqZxS4eBACgnlfP
TrJpQ5rKQt/fplaNbLg8B5M=
=9KnS
-----END PGP SIGNATURE-----


[-- Attachment #2: Markus_Bernhardt.vcf --]
[-- Type: text/x-vcard, Size: 558 bytes --]

begin:vcard
fn:Markus Bernhardt
n:Bernhardt;Markus
org:Software Consulting Markus Bernhardt GmbH
adr;quoted-printable:;;Spieljochstr. 34;M=C3=BCnchen;;81825;Germany
email;internet:Markus.Bernhardt@scmb.de
title;quoted-printable:Gesch=C3=A4ftsf=C3=BChrer
tel;work:+49-89-420903-0
tel;fax:+49-89-420903-20
tel;home:+40-90-18932799
tel;cell:+49-171-5770462
note;quoted-printable:Gesch=C3=A4ftsf=C3=BChrung Markus Bernhardt=0D=0A=
	Handelsregister AG M=C3=BCnchen HRB 125966=0D=0A=
	USt-Id DE201885231
x-mozilla-html:FALSE
url:www.scmb.de
version:2.1
end:vcard


[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-01-23 21:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.3280.1201040714.4317.ntg-context@ntg.nl>
2008-01-23 11:52 ` Module for svn info Robin Kirkham
2008-01-23 21:26   ` Peter Münster
2008-01-21 23:58 Robin Kirkham
2008-01-22  3:10 ` Ernesto Schirmacher
2008-01-22 11:15   ` Markus Bernhardt
2008-01-23 12:34     ` Aditya Mahajan
  -- strict thread matches above, loose matches on Subject: below --
2008-01-20  2:34 Markus Bernhardt
2008-01-20  5:11 ` Aditya Mahajan
2008-01-21  8:32   ` Markus Bernhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).