git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Questions about Git-Gui Makefile and GNU File Name and Text Functions

From
EVEdua Vioz <eltipejoloco@gmail.com>
Date
Jun 3, 2020, 07:56 UTC
Message-ID
<CAGiZ90kHSZEjw2ApU4kyGqCCH0KJS2Fe1mbvkJy4W2YKXs_-=w@mail.gmail.com>
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
Next: Paul Smith
Message 1 of 2 in “Questions about Git-Gui Makefile and GNU File Name and Text Functions”
  1. Edua ViozJun 3, 2020
  2. Paul SmithJun 3, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.