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

Repository Layout

From: Miguel Rentes <miguel.rentes_at_efacec.pt>
Date: Thu, 10 Jan 2008 14:59:02 +0000

Hi!

I'm setting a SVN repository for a project team with whom I work and I'm
having some difficulty setting the correct layout because my project is
a very large one (with 3 different platforms: Unix, Linux and Windows)
and I'm a SVN newbie. So, I would really appreciate every help I can get.

Here's my problem:

The source code for the project is intended to be the same across all 3
platforms. So, I thought of creating a SVN repository with this source
code that could be updated whenever any developer wants to change the
code. But, I have some files and folders specific to the different
platforms I use, and I want to add these files when I need to compile or
test the code when I am working for that platform. For example:

the source code folders might be like this

- folder 1
 --- test.c
 --- test.h
 --- ...
- folder 2
 --- test2.c
 --- test2.h
 --- ...

If I'm working in Windows I need to have in the local working copy
something like:

- folder 1
 --- test.c
 --- test.h
 --- MakefileWin <-- Makefile specific for Windows platform
 --- ... (other specific files for Windows)
- folder 2
 --- test2.c
 --- test2.h
 --- MakefileWin <-- Makefile specific for Windows platform
 --- ... (other specific files for Windows)

But, if I need to work in Linux, I have to be able to access a linux
machine and have a different set of files, like:

- folder 1
 --- test.c
 --- test.h
 --- MakefileLinux <-- Makefile specific for Linux platform
 --- ... (other specific files for Linux)
- folder 2
 --- test2.c
 --- test2.h
 --- MakefileLinux <-- Makefile specific for Linux platform
 --- ... (other specific files for Linux)

and I have to do this having only one SVN repository that stores the
source code. But what about these platform-specific files? They need to
be in another repository? Do I need to create branches that have these
specific files for every different platform I need to compile/test my
project's code?

Any help would be great.

Thanks in advance,

Miguel Rentes

-- 
*Miguel Rentes*
Informatics Engineer
EFACEC - Electronic Systems <http://www.efacec.pt/>
Network Management
Email: miguel.rentes_at_efacec.pt <mailto:miguel.rentes_at_efacec.pt>
Phone: +351 229403388
Received on 2008-01-10 16:00:06 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.