git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Edua Vioz <eltipejoloco@gmail.com>
To: git@vger.kernel.org
Subject: Questions about Git-Gui Makefile and GNU File Name and Text Functions
Date: Wed, 3 Jun 2020 02:56:14 -0500	[thread overview]
Message-ID: <CAGiZ90kHSZEjw2ApU4kyGqCCH0KJS2Fe1mbvkJy4W2YKXs_-=w@mail.gmail.com> (raw)

Hey all,

Sorry to bother you for something that might turn out to be trivial,
but I'm curious as to something I experienced when building git-gui
with its current master branch's Makefile via Git Bash on Windows.

Essentially, the DEST value appeared to have suddenly changed
mid-installation: It omitted the word "Program" from "Program Files"
and failed to eliminate "libexec" from the target directory it ended
up writing to (judging from the files installed by Git for Windows'
installer, I assume it should be trying to place the share folder and
its contents in the mingw64 folder). I've been poring over the
Makefile trying to figure out the problem, and I have a few questions
(aside from wishing to see some sort of public Regex-like sandbox tool
sometime in the future that would let people preview the outcomes of
File Name and Text Functions fed to them):

Would the outcome of $(dir C:/Program
Files/Git/mingw64/libexec/git-core) be "C:/Program
Files/Git/mingw64/libexec/" or "C:/ Files/Git/mingw64/libexec/"? If
the latter, is there no way for the $(dir) File Name function to be
told to respect white-spaces in files' directories? The way the Git
Gui Makefile is set up, it's already passing the git --exec-path as a
defined variable, so I'm guessing doing that's a no go. Is there a
text function that can actually detect white spaces and substitute
them in and out for ?\s for the sake of other functions that need
them, for example?

Additionally, would $(notdir C:/Program
Files/Git/mingw64/libexec/git-core) result in "Program git-core"?
Which would then cause an ifeq against "git-core" to fail? Should I
have been more panicked if the above code had actually let files be
installed to "C:Program
Files/Git/mingw64/libexec/git-core/share/git-gui/lib"?

I'm not really asking for a solution for myself: I'm pretty sure I can
just change the Makefile so that I can successfully build Git Gui. I'm
just curious if it's just been this long since a Windows user decided
to take "you just need the dependencies installed and then you can
make install" on the README.md at face value, did so, and then
realized "oh, wait, I can't just do that."

Anyway, cheers all. I hope you're well, and I look forward to maybe
hearing from you.

~ ElTipejoLoco

             reply	other threads:[~2020-06-03  7:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-03  7:56 Edua Vioz [this message]
2020-06-03 14:34 ` Questions about Git-Gui Makefile and GNU File Name and Text Functions Paul Smith
  -- strict thread matches above, loose matches on Subject: below --
2020-06-03 19:45 Edua Vioz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGiZ90kHSZEjw2ApU4kyGqCCH0KJS2Fe1mbvkJy4W2YKXs_-=w@mail.gmail.com' \
    --to=eltipejoloco@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).