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

SVN Keyword substuition question

From: Joe Wade <d.joe.wade_at_gmail.com>
Date: Mon, 22 Sep 2008 08:25:16 -0400

Have a SVN useage question. Ultimately I am looking to perform a custom
keyword substuition. But as I do not think that is currently supported
(issue 890 seems like people are trying), I may need some help with a
work around.

I would like (or at least the powers that be would like) to append a
license and copyright statement to the top of every source & header
file. I don't really want to manually edit all the files for a few
reasons. First, I don't want to have to maintain the files as the
statements change (which they shouldn't but of course will). There
are also quite a few files (big project), so I don't really want to
go through all the files manually.

I have investigated using svn:property(s) (as the book suggests)
to embedd license and copyright information, but I really need them
to be visible at the top of each of the files. The properties are only
(correct me if I am wrong) through the svn prop* commands.

I could create a sed script (or something) to put the statements at
the top of the file, but I am hoping there is a nicer way for me
to do this with SVN. I think the ultimate solution would be to have
a $license$ and $copyright$ keyword on the files and have SVN
do a substuition during checkout/checkin, but in the meantime I
need to get this done. Any ideas? Can I get this functionality with
the current set of hook scripts?

--
V/R,
Joe
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-22 14:25:40 CEST

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.