LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-24-2006, 06:46 PM   #1
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938
Case-insensitive CVS?


I need to maintain a project in CVS that was originally developed under Windows. (The compiler runs under Wine.)

Anyhow... I want to somehow designate to CVS that such-and-so project is "case insensitive," even if the underlying host system is not. In other words, I want it to interpret each filename that is checked-in or checked-out to the repository for this project in a case-insensitive manner. (Slight variations of case are a fact of life in Windows systems, where a file might be bah.EXE or bah.exe.)

Ideas? Recommends?
 
Old 06-24-2006, 07:36 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
"--ignore-case" is only available for the 'diff' cvs command.

So, I guess it's either hack-the-source time, or just spend the time to normalize the case in your files.

I was thinking you may be able to use the 'commitinfo' file to create a case-insensitive regex that will trap the commit and enact it on the *real* file, but the more I think about it, the more I think it would just cause an endless loop. Plus, it would only work for commits, not for checkouts.

I think the path of least resistance is just to normalize the files...
 
Old 06-25-2006, 10:01 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659

Original Poster
Blog Entries: 4

Rep: Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938
Thought so. Umm, there isn't a pre-existing utility to do that, is there? I mean, it's not hard to bang one out but ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to search in VI wih case insensitive lordofring Programming 7 11-16-2011 08:11 AM
SuSE's less(1) is always case insensitive: how to disable? wirawan0 SUSE / openSUSE 1 01-25-2006 12:10 PM
having fstab-sync mount fat case-insensitive eliotstock Linux - General 9 06-05-2005 12:55 PM
case insensitive search command ColKurtz Linux - Newbie 4 01-20-2005 07:02 AM
case-insensitive auto-complete gSalsero Programming 3 06-08-2004 07:33 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration