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: [EMAIL PROTECTED]

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





_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to