|
From: | Derek Robert Price |
Subject: | Re: knowledge of binary designation in cvswrappers for commitinfo script |
Date: | Mon, 19 Aug 2002 12:28:19 -0400 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020606 |
David Everly wrote:
My developers sometimes ftp text files as binary from windows to a unix machine and then commit these files to cvs. I have these files defined in cvswrappers as: -k 'o' Some other files are defined in cvswrappers as: -k 'b' In my commitinfo script, how do I discover if the file is marked -k 'o' so I can run dos2unix on it before the commit?
I think your options might be parsing the RCS file or hacking CVS. I have a patch that should make that easier: <http://ximbiot.com/ccvs.newfmtstrings.1-11.diff>, in case you're interested.
Alternatively, you could use the UNIX `file' command or "perl -e 'exit -T $ARGV[0]' file"
Derek -- *8^) Email: address@hidden Get CVS support at http://ximbiot.com -- When the only tool you own is a hammer, every problem begins to resemble a nail. - Abraham Maslow
[Prev in Thread] | Current Thread | [Next in Thread] |