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

Re: Help regarding custom makefile

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Tue, 12 Aug 2008 00:45:35 -0500

On Aug 11, 2008, at 02:39, Kapil Aditani wrote:

> Ryan Schmidt wrote:
>
>> On Aug 11, 2008, at 01:34, Kapil Aditani wrote:
>>
>>> Ryan Schmidt wrote:
>>>
>>>> On Aug 10, 2008, at 23:41, Kapil Aditani wrote:
>>>>
>>>>> I am new to SVN and have installed it few days back only. I
>>>>> want to use custom make file which uses some PATH variables to
>>>>> be present in environment. Before this I was using cvs whose
>>>>> directory structure was directly visible. Can you suggest me
>>>>> how to set these environment variable so that my custom
>>>>> makefile should be able toread from svn repository.
>>>>
>>>> If you want to see the structure of what's in a repository at
>>>> $REPO, you would do something like
>>>>
>>>> svn list $REPO
>>>>
>>>> If that wasn't your question, please tell us more about what
>>>> exactly you're trying to accomplish.
>>>>
>>>> Be sure to read the book. It should answer most of the beginning
>>>> questions you may have.
>>>>
>>>> http://svnbook.org/
>>>>
>>>> There's even an appendix at the end for CVS users which you may
>>>> find valuable.
>>>
>>> I have Makefile which contains the list of files to be compiled.
>>> As files are stored in different structures, we have specified
>>> envionment variable to look for the file.
>>> for e.g. Make file contains:
>>> # objects to link with
>>> SERVICE_OBJS = \
>>> $(C_BLD_ROOT)/src/interfaces/fileA.o \
>>> $(D_BLD_ROOT)/src/interfaces/fileB.o \
>>>
>>> These $(C_BLD_ROOT) & $(D_BLD_ROOT) are present in the
>>> environment variables., such
>>> C_BLD_ROOT=/Path1/Subpath1
>>> D_BLD_ROOT=/Path2/SubPath1
>>>
>>> With the help of svn list command we are abvle to list the object,
>>> but we are not able to understand how to use that ffor environment
>>> variables?
>>
>> I'm having trouble understanding the question. What you do with
>> your Makefiles and environment variables is up to you and outside
>> the scope of what Subversion (and, as far as I understand, CVS)
>> does (though I haven't used CVS).
>>
>> What environment variable would you like to have set to what
>> value, and in what way do you want Subversion to influence it? In
>> what way did CVS influence it in your previous setup?
>
> These are enviornment varibale
> C_BLD_ROOT=/Path1/Subpath1
> D_BLD_ROOT=/Path2/SubPath1
>
> We want whenever $(C_BLD_ROOT) is encounter in makefile,
> it should take that Path from $Repos, files required are in
> repository.
>
> When I give
> svn list $Repos
> It produces the following output:-
> Path1
> Path2
>
> svn list $Repos/Path1/SubPath1
> A.c
> C.c
> E.c
>
> svn list $Repos/Path2/SubPath1
> B.c
> D.c
> F.c
>
> We want to compile All these files together, so we used environment
> variables.

Then maybe you want to run:

svn checkout $Repos/$C_BLD_ROOT c_workingcopy
svn checkout $Repos/$D_BLD_ROOT d_workingcopy

Or if you just need the files and don't need them to be in a working
copy:

svn export $Repos/$C_BLD_ROOT c_export
svn export $Repos/$D_BLD_ROOT d_export

Or are you saying you want all files from $Repos/$C_BLD_ROOT and
$Repos/$D_BLD_ROOT to end up in a single joined directory? If so, you
will want to export the separate directories, then move all the files
from one directory into the other:

svn export $Repos/$C_BLD_ROOT export
svn export $Repos/$D_BLD_ROOT export_tmp
mv export_tmp/* export
rmdir export_tmp

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-12 07:46:21 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.