From wdunlap at tibco.com  Tue Oct 14 19:26:22 2008
From: wdunlap at tibco.com (William Dunlap)
Date: Tue, 14 Oct 2008 10:26:22 -0700
Subject: [Rd] dos-style line endings in .Rbuildignore result in files
	not being excluded
In-Reply-To: <48F4BD41.1050504@acm.org>
References: <48F429D1.6040500@acm.org>	<874p3fn3yf.fsf@patagonia.sebmags.homelinux.org><alpine.LFD.2.00.0810141248500.27617@gannet.stats.ox.ac.uk>
	<48F4BD41.1050504@acm.org>
Message-ID: <FBFBD35F5823FD4E97ACDEBB353DD9C614800E@NA-PA-VBE01.na.tibco.com>

 
> -----Original Message-----
> From: r-devel-bounces at r-project.org 
> [mailto:r-devel-bounces at r-project.org] On Behalf Of Tony Plate
> Sent: Tuesday, October 14, 2008 8:40 AM
> To: r-devel at stat.math.ethz.ch
> Cc: Sebastian P. Luque; Prof Brian Ripley
> Subject: Re: [Rd] dos-style line endings in .Rbuildignore 
> result in files not being excluded
... 
> It was pretty easy for me to get these line endings -- I 
> created the file in GNU Emacs under Windows, and rsync'ed the 
> package directory to a Ubuntu Linux machine.  I went back and 
> checked, and GNU Emacs under Ubuntu did show (DOS) in the 
> status line of the buffer, but I never noticed that while I 
> was trying to figure out why my .Rbuildignore file wasn't 
> having any effect.  (I think I preferred it when Emacs would 
> show ^M at the end of each line in a CRLF file -- not showing 
> that is what I meant by "hiding it from me".)

In the Splus package system INSTALL copies the whole package
directory to a temp directory before doing any other processing.
If it sees a 'text' file, as determined by the perl -T (or ! -B) file
test operators, the copied file will have local line endings.
We don't use cygwin in the Splus package system, so what the local
line ending is is clear.  (Copying the entire directory also means
we can run INSTALL on a read-only package directory and we don't
leave around *.o or *.obj files that R CMD INSTALL won't like).

Bill Dunlap
TIBCO Spotfire Inc
wdunlap tibco.com



[Rd] dos-style line endings in .Rbuildignore result in files not being excluded
William Dunlap