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

Re: Repository Layout

From: Paul <alabamapaul_at_gmail.com>
Date: Thu, 10 Jan 2008 11:35:01 -0600

Miguel,
One possible solution would be to use the following structure:

/Platform/Windows/folder1/MakefileWin
/Platform/Windows/folder1/OtherWindowsFiles
/Platform/Windows/folder2/MakefileWin
/Platform/Windows/folder2/OtherWindowsFiles
/Platform/Linux/folder1/MakefileLinux
/Platform/Linux/folder1/OtherLinuxFiles
/Platform/Linux/folder2/MakefileLinux
/Platform/Linux/folder2/OtherLinuxFiles
/Platform/Unix/folder1/MakefileUnix
/Platform/Unix/folder1/OtherUnixFiles
/Platform/Unix/folder2/MakefileUnix
/Platform/Unix/folder2/OtherUnixFiles
/Common/folder1/test.c
/Common/folder1/test.h
/Common/folder2/test.c
/Common/folder2/test.h

Then have each of the platform specific make files to look for targets
in the appropriate ../../../Common folder.

Hope this helps,
Paul

On Jan 10, 2008 8:59 AM, Miguel Rentes <miguel.rentes_at_efacec.pt> wrote:
>
> 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
> Network Management
> Email: miguel.rentes_at_efacec.pt
> Phone: +351 229403388

---------------------------------------------------------------------
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 18:35:24 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.