Re: relocating the binaries
"Yakov Lerner" <iler.ml@gmail.com> writes:
> Let's say the git binaries were built with prefix=/usr/local.
> I wanto to copy them (relocate) to other machine under
> $HOME/run. WHich env.var. do I set to tell the git binaries that
> it's new prefix is $HOME/run ? nb: i'm not talking about rebuild.
See INSTALL.
- You can use git after building but without installing if you
wanted to. Various git commands need to find other git
commands and scripts to do their work, so you would need to
arrange a few environment variables to tell them that their
friends will be found in your built source area instead of at
their standard installation area. Something like this works
for me:
GIT_EXEC_PATH=`pwd`
PATH=`pwd`:$PATH
GITPERLLIB=`pwd`/perl/blib/lib
export GIT_EXEC_PATH PATH GITPERLLIB
GIT_EXEC_PATH won't be `pwd` but wherever you will take git-* binaries to; adjust GITPERLLIB too accordingly.