info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keeping different platforms in sync?


From: Greg A. Woods
Subject: Re: Keeping different platforms in sync?
Date: Tue, 18 Sep 2001 16:00:57 -0400 (EDT)

[ On Tuesday, September 18, 2001 at 15:58:38 (+0100), Stephen Jowitt wrote: ]
> Subject: Keeping different platforms in sync?
>
> We develop for Windows and Linux and both systems share source code from
> the same repository. Our developers would like to be able to do the
> following:
> 
>   1) Write code on windows machine. Compile and test.
>   2) Compile and test the same code on a linux box
>   3) Commit changes to cvs

I would do it this way:

   1) Write code on any linux machine. Compile and test.
   2) Compile and test the same code on a windows box
   3) Commit changes to cvs

   0) NEVER, EVER, edit/change any code on the windows boxes....

You can facilitate the sharing of the code between compiles in any
number of ways, but perhaps the easiest is with Samba or NFS with the
files residing physically on the linux box.  You could also just use
'ftp' or 'rcp' or 'scp' or whatever you have a server for on the windows
boxes (does rsync compile for windows?) to shove copies of the updated
code over to the windows boxes.

The best way though would be to use something like 'rsh' to remotely
invoke the compiler on the windows box (yes, this can be done and I even
know of one commercial SCM solution that does things this way).  You can
build this right into your makefiles and thus automatically do all the
builds without ever having to touch the windows boxes (and thus avoid
the possibility of ever accidentally editing anything on them).

I recommend it this way around because this way you'll have the least
amount of problems with line separator/terminator conversions.

-- 
                                                        Greg A. Woods

+1 416 218-0098      VE3TCP      <address@hidden>     <address@hidden>
Planix, Inc. <address@hidden>;   Secrets of the Weird <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]