[cvsnt] directory references

Bo Berglund Bo.Berglund at system3r.se
Wed Nov 2 12:25:29 GMT 2005


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


We work in a different way, but it is not very far from yours really.

First of all we base our builds on completely fresh files from CVS,
so we are getting *all* files from CVS via the batch file.
We also have a specific build location on the disk to do this.

The batch files will first make sure we have a clean disk by removing
the build folders if they exist. Then the needed files are cvs exported
to the wanted location. Notice that we do the export in order not to
create sandboxes and to get the true file timestamps out (remember we
build our setups this way).
We also cvs export our setup compiler at the same time and finally
we call the build script all from within the batch files.

To do this we always make sure to plce the current dir properly,
for example like this:

@echo off
C:
cd \BuildSystem
if EXIST ProjectX rmdir /s /q ProjectX
mkdir ProjectX
cd ProjectX
set CVSROOT=:sspi:cvsserver:/Repo
cvs export -r HEAD -d Common Common/Lib
if errorlevel 1 goto error
etc etc.....
goto exit
:error
echo A CVS error occurred
pause
:exit


/Bo


-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org]On Behalf
Of Kenneth Sørensen
Sent: den 2 november 2005 10:12
To: cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
Subject: SV: [cvsnt] directory references


Hi Bo

We use batch-files and Makefiles to compile our software and would like to update some common libraries before we compile the software.

I am aware of the different line-endings in linux/Cygwin and Windows. It is not a problem for us because make and GCC can handle Windows line-endings.

The scenario with the batch-file is as follows:

We have the common libraries in a sandbox located in "c:\cvslib\lib-pic\" The software for the project is in another sandbox located in "c:\cvswork\theproject\"

In the project we have a batch-file called make.bat, which is used to retrieve the latest copy of the libraries and compile the software.

The contents are:
cvs update ..\..\cvslib\lib-pic
mpasm theproject.asm

When I do it this way CVSNT returns with the error: "cvs [update aborted]: writing to server socket: error -1"

I hope this made clear what the problem is?

/Kenneth

-----Oprindelig meddelelse-----
Fra: Bo Berglund [mailto:Bo.Berglund at system3r.se]
Sendt: 2. november 2005 09:39
Til: Kenneth Sørensen; cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
Emne: RE: [cvsnt] directory references


What *exactly* are you trying to do?
The contents of the batch file would help a bit....

We use batch files all the time with CVS in our release setup
build process and it works fine.
You just have to mimic exactly what you would do on the command
line to get the results you need.
So enter manually the needed commands on a command prompt and
record what you did in order to get the right data, then create
the batch file with this contents and you should be fine.

But I would be careful not to mix Windows commands with Cygwin,
especially not in the same sandbox, because inherently Cygwin
commands create UNIX style files whereas Windows commands create
Windows style file (different line endings).

Be careful here!

/Bo

-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org]On Behalf
Of Kenneth Sørensen
Sent: den 2 november 2005 07:42
To: cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
Subject: [cvsnt] directory references


Hi list

We would like to use CVSNT to update some files from a Windows batch-file and from a GNU Makefile (cygwin). However, we have problems referencing the files because they stay in another directory and sandbox.

The batch-file or Makefile is run from "c:\cvswork\somemodule\" and the files to update is placed in "c:\cvslib\somelibrary\"

We have tried the command "cvs update ..\..\cvslib\somelibrary\" but CVSNT responds with the error "cvs [update aborted]: writing to server socket: error -1". Our experiments indicate that CVSNT is not able to reference across sandboxes.

Is it possible to do this and how do we do it?

We use CVSNT 2.0.58d client and server.

/Kenneth
_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs

_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs



More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook