Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.utils.help > #310 > unrolled thread

git/make for windows expansion of relative paths

Started byMichael Powell <mwpowellhtx@gmail.com>
First post2017-09-17 11:57 -0700
Last post2017-09-19 12:32 -0600
Articles 2 — 2 participants

Back to article view | Back to gnu.utils.help


Contents

  git/make for windows expansion of relative paths Michael Powell <mwpowellhtx@gmail.com> - 2017-09-17 11:57 -0700
    Re: git/make for windows expansion of relative paths Bob Proulx <bob@proulx.com> - 2017-09-19 12:32 -0600

#310 — git/make for windows expansion of relative paths

FromMichael Powell <mwpowellhtx@gmail.com>
Date2017-09-17 11:57 -0700
Subjectgit/make for windows expansion of relative paths
Message-ID<b30af2b3-524f-4e1c-8b2c-842bb1e0635f@googlegroups.com>
Hello,

As the subject states, that's my general question: how can it be done? I have a relative path which I need to pass along to a utility program in terms of its absolute path.

Thus far, attempts to do so using realpath, abspath, and a plethora of variants have been foiled and do not seem to work properly. I bumped into one forum post or another that seemed to indicate that make 3.81 (?) may be broken for Windows along these lines, but I cannot say for certain.

As far a I know, I am using GNU make v3.80 as exposed by Git for Windows v2.12.0.

Thanks!

Regards,

Michael Powell

[toc] | [next] | [standalone]


#311

FromBob Proulx <bob@proulx.com>
Date2017-09-19 12:32 -0600
Message-ID<mailman.795.1505845974.14750.help-gnu-utils@gnu.org>
In reply to#310
Michael Powell wrote:
> Subject: Re: git/make for windows expansion of relative paths
> As the subject states, that's my general question: how can it be
> done? I have a relative path which I need to pass along to a utility
> program in terms of its absolute path.

I am not a Microsoft Windows user so have not tested but have you
tried using:

  readlink -f ../../relative/path

'readlink -f' will turn the relative path into an absolute path.  It
will turn it into the canonical path.  Being canonical there will be
no symlinks to it.

If you don't have readlink then perhaps the Cygwin or MinGW tools for
MS-Windows would be workable?

> Thus far, attempts to do so using realpath, abspath, and a plethora
> of variants have been foiled and do not seem to work properly.

Give 'readlinke -f' a try.

> I bumped into one forum post or another that seemed to indicate that
> make 3.81 (?) may be broken for Windows along these lines, but I
> cannot say for certain.
> 
> As far a I know, I am using GNU make v3.80 as exposed by Git for
> Windows v2.12.0.

If your question is specifically about 'make' then the better mailing
list is the help-make AT gnu.org mailing list where the make
developers and other make experts and users hang out.

Bob

[toc] | [prev] | [standalone]


Back to top | Article view | gnu.utils.help


csiph-web