Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Apr 2005 08:40:32 -0300
From:      Antonio Carlos Venancio Junior <antonio@php.net>
To:        Alex Varju <alex@varju.ca>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Patching files with spaces in the name
Message-ID:  <42566DB0.8050803@php.net>
In-Reply-To: <42560932.6050702@varju.ca>
References:  <424CCC27.6060807@varju.ca> <42551A04.8050201@php.net> <42560932.6050702@varju.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
Alex,

Alex Varju wrote:
> Antonio Carlos Venancio Junior wrote:
>  >> Alex Varju wrote:
> 
>>> While I'm sure this question must have come up in the past, I can't 
>>> find anything in the archives.  Is there any good method for patching 
>>> source files with spaces in the name?
>>>
>>> I'm looking at creating an eclipse-devel port for Eclipse 3.1m5a.  
>>> I've already got something working now that allows me to build on 
>>> AMD64 (see the freebsd-java archives if you are interested).  Now I'm 
>>> trying to clean up my work, and one of the problems I've encountered 
>>> is that Eclipse uses spaces in many of their paths.  If I take a diff 
>>> for changes I've made to files within one of these directories, the 
>>> patch won't apply again afterwards.
>>>
>>> Are there any ports that deal with similar problems in an elegant 
>>> manner?
> 
>  >
>  >     do you have some examples?
> 
> Hi Antonio,
> 
> Yes, I do have an example.  I've attached a diff from the port I have in 
> progress.  The theory is that it should update the file build.sh in the 
> directory "plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library". 
> Unfortunately, because of the spaces in "Eclipse SWT PI", the patch does 
> not work.
> 
> Alex.
> 
> 
> ------------------------------------------------------------------------
> 
> --- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh.orig	Fri Apr  1 13:56:58 2005
> +++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh	Thu Apr  7 21:28:24 2005

	try this two options:

plugins/org.eclipse.swt/Eclipse\ SWT\ PI/gtk/library/build.sh
"plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh"

	Got it?! ;)

-- 
Cya

Antonio
echo antonio php net | sed 's/ /@/;s/ /./g'
FreeBSD/OpenBSD | PHP/MySQL | PGP Key ID 0x5BBEB073
"Can't buy what I want because its FREE!" - Pearl Jam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42566DB0.8050803>