Thread (25 messages) flat view 25 messages, 6 authors, 2016-06-15

Re: Git 1.3.2 on Solaris

From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-06-15 22:42:26


On Wed, 17 May 2006, Stefan Pfetzing wrote:
So I'd prefer a solution where one could set one flag for the Makefile of git,
and git would check for the g prefix, create somewhere a directory with
symlinks to the "real" gnu binaries and put it into $PATH upon startup of
every git c-program or shellscript.
So let me just quote the thing you quoted but apparently didn't read:
quoted
If you use the git wrapper, for example, you can already depend on the
fact that it will prepend the git installation directory to the path, so
while the GNU tools might not _normally_ be on the path, if you put them
in the same directory as your git install, you'll automatically get them
as long as you use the "git cmd" format (rather than the "git-cmd"
format).
There already _is_ such a directory. It's your "prefix=" directory plus 
"bin".

So what you can do is make sure you compile with

	make prefix=/my/git/installation/prefix

and then install the GNU tools in /my/git/installation/prefix/bin, and 
you're all set.

At most you might have to make some of the tests use "git xyzzy" instead 
of "git-xyzzy", and run "make install" before "make test". 

It wouldn't be wonderful, but hey, I've given alternatives (like using the 
GNU tools by default, or helping make git more portable in the first 
place). So it's a hack. 

		Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help