X-Spam-Check-By: sourceware.org Date: Thu, 1 Feb 2007 11:23:42 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Eliminating -mno-cygwin from gcc? Message-ID: <20070201162342.GA17359@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20070131131337 DOT GA17256 AT trixie DOT casa DOT cgf DOT cx> <20070201101648 DOT GD25688 AT ns1 DOT anodized DOT com> <20070201103946 DOT GY27843 AT calimero DOT vinschen DOT de> <20070201121552 DOT GB29751 AT trixie DOT casa DOT cgf DOT cx> <20070201154711 DOT GZ27843 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Thu, Feb 01, 2007 at 11:14:28AM -0500, Lev Bishop wrote: >On 2/1/07, Corinna Vinschen wrote: >>On Feb 1 07:15, Christopher Faylor wrote: >>> We were going to replace text mounts with automatic file conversion using >>> "d2u": >>> >>> cygwin: CRLF line endings detected. Converting. >> >>I think this is too complicated. What about >> >> cygwin: CRLF line endings detected. Deleting offending file. > >It's already been shown that file deletion is too slow in cygwin. We >don't want more performance complaints. Better do it this way: > >$ cat /etc/postinstall/cygwin.sh.done >#!/bin/sh >find / -execdir d2u {} + That's a good idea but I think you mean: #!/bin/sh exec find /cygdrive/? -execdir d2u {} + The use of the "exec" above would remove the need for cygwin's fork, which we know is also slow. Also using cygdrive ensures that everything is caught. Hmm. We might want to extend this script to detect a corporate network and "do the right thing" there, too. Just to be really thorough. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/