Wednesday, September 28, 2005

 

Linux Security - Seifried Security Site

Linux Security - Seifried Security Site

Tuesday, September 27, 2005

 

CVS--Concurrent Versions System v1.11.20: 9. Handling binary files

CVS--Concurrent Versions System v1.11.20: 9. Handling binary files

9.2 How to store binary files

There are two issues with using CVS to store binary files. The first is that CVS by default converts line endings between the canonical form in which they are stored in the repository (linefeed only), and the form appropriate to the operating system in use on the client (for example, carriage return followed by line feed for Windows NT).

The second is that a binary file might happen to contain data which looks like a keyword (see section Keyword substitution), so keyword expansion must be turned off.

The `-kb' option available with some CVS commands insures that neither line ending conversion nor keyword expansion will be done.

Here is an example of how you can create a new file using the `-kb' flag:


$ echo '$Id$' > kotest
$ cvs add -kb -m"A test file" kotest
$ cvs ci -m"First checkin; contains a keyword" kotest

If a file accidentally gets added without `-kb', one can use the cvs admin command to recover. For example:


$ echo '$Id$' > kotest
$ cvs add -m"A test file" kotest
$ cvs ci -m"First checkin; contains a keyword" kotest
$ cvs admin -kb kotest
$ cvs update -A kotest
# For non-unix systems:
# Copy in a good copy of the file from outside CVS
$ cvs commit -m "make it binary" kotest

Monday, September 26, 2005

 

CVS: Can't change ascii/binary type of file

Re: Can't change ascii/binary type of file: "I don't know about WinCVS, but with CVS, I would do cvs admin -kb As the cederqvist tells us about the treatment of binary files (in section 9.2 'How to store binary files'): However, in using cvs admin -k to change the keyword expansion, be aware that the keyword expansion mode is not version controlled. This means that, for example, that if you have a text file in old released, and a binary file with the same name in new releases, CVS provides no way to check out the file in text or binary mode depending on what version you are checking out. There is no good workaround for this problem."

Sunday, September 25, 2005

 

Schnelle Backups

Schnelle Backups

This page is powered by Blogger. Isn't yours?