Hi
I'm trying to write some makefile rules that emulate for svn repos what
make already does with RCS files; if the file is needed for a build,
and does not exist, attempt to check it out from the repository.
For an example, see [1] below.
Has anyone done this?
For historical reasons, I want to be able to work with a clean directory
and just a handful (mostly just one) of the files from a project.[2]
I would use a symlink to the .svn dir of a full checkout of the project
to maintain the status information.
The useage would look like:
mkdir footest
cd footest
ln -s $svncheckoutdir/.svn .svn
cp $svncheckoutdir/blabulator.f .
vi blabulator.f
make
...
svn commit -m"fix typo in help" blabulator.f
cd .. ; rm -rf footest
I can see that 'svn status <filename>' provides a way of detecting whether
a given file is in the repository but not on disk (so needs copying), and
that 'svn update <filename> gives a way of making a copy in the local
directory.
My question is, though, has someone been this way before and if so
what was the answer?
A search of the list archive didn't turn up anything useful.
Any thoughts would be welcome.
Vince
[1]
http://www.gnu.org/software/make/manual/make.html#index-RCS_002c-rule-to-extract-from-831
see also
http://www.gnu.org/software/make/manual/make.html#Pattern-Examples
http://www.gnu.org/software/make/manual/make.html#index-prerequisites_002c-automatic-generation-281
[2]
The project is mostly a collection of monolithic programs that are run
independently, on files of a particular format. This was easy to manage
in RCS.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-10 05:44:11 CET