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

makefile rules for svn

From: Vincent McIntyre <Vince.McIntyre_at_atnf.csiro.au>
Date: Thu, 10 Jan 2008 15:36:47 +1100 (EST)


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
   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

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.

see also

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

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.