delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/09/27/20:02:41

X-Spam-Check-By: sourceware.org
Date: Wed, 27 Sep 2006 20:02:25 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Malcolm Nixon <malcolm DOT nixon AT gmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: RE: Bash 3.1.17(8) CR/LF problem
In-Reply-To: <860934040609271632u5221c256v8b4db4c16bf669e3@mail.gmail.com>
Message-ID: <Pine.GSO.4.63.0609271959400.15013@access1.cims.nyu.edu>
References: <860934040609271632u5221c256v8b4db4c16bf669e3 AT mail DOT gmail DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 Wed, 27 Sep 2006, Malcolm Nixon wrote:

> Jonathan Arnold wrote:
> > You can change the Perforce filetype to be binary, and that way Perforce
> > will leave the cr/lf alone. Then check out the scripts, do a d2u on them,
> > and check them back in.
> >
> > $ p4 edit -t binary myscript.sh
>
> I believe this is what I will end up being forced to do.  Many of the
> other fixes could be used if this were just my system, however I have to
> assist over 30 developers scattered around the country, most of whom are
> Cygwin illiterate (other than running a simple build script).
>
> The mount point idea would work, except that every developer gets their
> local sandbox in different areas of their drives, and most have multiple
> sandboxes active for work on different branches.

Right.  So do the above "binary" fix on just the main build script (since
your Cygwin-illiterate developers are unlikely to touch that), and also
have that script adjust the mount where *it* lives (or some path relative
to it) if the OS is Cygwin and the mount is binary...

> The only truly annoying thing with binary files in Perforce is that it
> makes diffing and merging much harder.

Indeed.  So don't go the full Monty until you've exhausted other options.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019