Re: a 'cygpath' equivalent?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: a 'cygpath' equivalent?

Sam Steingold
Olaf Flebbe wrote:

>
>> Cygwin comes with a 'cygpath' program to convert between POSIX and
>> Windows pathnames.
>>
>> Does MSYS come with an equivalent.
>
>
> You should not need such a thingy, because Msys automagically translates
> Path names, even in the environment. If you have a problem with this
> translation, you should try to describe your problem in more detail.

if I have this (generated) makefile:

==============
DIR=c:/a/b/c/d

foo: $(DIR)/foo
        copy $(DIR)/foo foo
==============

make barfs (multiple target patterns) because it cannot handle 2 colons on one
line.
the solution is to use an msys path /c/a/b/c/d instead if the windows path
c:/a/b/c/d
alas, there is no way to do the conversion without the ad hoc sed command
(which is very easy to get wrong).


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mingw-msys mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mingw-msys