I am working on DoT on 2 different OS' Win2k using VC++ to compile it and OpenBSD 3.0
I love working on both platforms for developing but I was wondering if there would be an easy way to syncronise code from one machine to another.
ie:
if I like the changes I made in VC++ and want to make them live on my OBSD all I would like to do is move over the code that was modified and not move over everything. so if i just modified 1 file or 5 files(and dont remember which ones i modified) just move them and not all the other files.
And vice versa too .
I hope this makes sense.
My open BSD box only runs ftp and ssh (no samba or anything else) , my win2k box has no servers installed.
Depends how nicely you want to sync them.
One way is to network the openbsd and win2k machine, have the win2k machine. Have a single code source on the openbsd machine using samba for win2k to access the files on the openbsd box.
Or you could use cvs which is a bit cleaner, combine cvs and wincvs into visual studio etc.
What you are trying to do is totally possible though,
- Kal
Since I would like it to be clean probably cvs would be right.. and also I have no clue on how to set up samba :)
would you have any pointers on setting up CVS?
Sites documentation etc..?
Assuming you have a firewall in place Samba is extremely simple to set up , Just make sure you have the windows networking ports blocked to the outside world.
I don’t remember off the top of my head which examples or tutorials I used, but a simple search on Google will yield many sources of information on this subject. I think it took me all of 20 minutes to set up, My Mud runs on A FreeBSD machine and I do most of my coding using MSVC on My Win2K machine via the samba share, I also use CVS and I cant stress how useful this is, CVS is a great tool , its saved me hours of work.
Learning how to set up and use CVS is a little more complex than Samba , but there are many good sources of info available, once again I recommend a search on Google.
-Balo-
IMP Stormbringer MUD
telnet://stormbringer.sytes.net:4500
http://www.stormbringer.sytes.net
Well I got samba set up , not as painfull as i thought. I am behind a router with only mud ports open so windows networking is non existant to the outside world.
I will try this setup and see if I can use this setup to succesfully edit and compile files on both machines.
The reson I wanted to do this is while at work I ssh into my box to fiddle with source code and it would be nice to have one set of code to work on rather than 2 sets and having to remember what files i changed..
well give it a go, thanks all
I would have thought that the simple way to synchronise code changes would be to do a "diff" on the whole directory, and then run "patch" on the resulting file on the other machine.
Also, check out "rsync" which synchronises files between two machines. From "man rsync" ...
The rsync remote-update protocol allows rsync to transfer just the differences between two sets of files across the network link, using an efficient checksum-search algorithm described in the technical report that accompanies this package.
I presume you could run rsync on the Win2K PC using Cygwin.
I guess since I have the source directory from my BSD box mapped as a shared drive I could as easily run a diff program and compare both directories, essentially doing just what you said but a little differently.
dunno still experimenting.