test packaging instructions and make required changes

redis
Sitaram Chamarty 2012-05-20 10:07:29 +05:30
parent 27c0190b76
commit 72b6a54e0a
3 changed files with 9 additions and 8 deletions

View File

@ -152,15 +152,16 @@ Gitolite has broad similarities to git in terms of packaging requirements.
With that said, here's one way to package gitolite:
* Put the two executables (gitolite and gitolite-shell) somewhere in PATH.
Then change the 2 assignments to `$ENV{GL_BINDIR}`, one in 'gitolite', one
in 'gitolite-shell', to "/usr/libexec/gitolite".
* Put the executable `gitolite` somewhere in PATH. Put the executable
`gitolite-shell` in /usr/libexec/gitolite (along with those 5 directories).
Change the 2 assignments to `$ENV{GL_BINDIR}`, one in 'gitolite', one in
'gitolite-shell', to "/usr/libexec/gitolite" from `$FindBin::RealBin`.
This is equivalent to "make" embedding the exec-path into the executable.
**OR**
Put the two executables `gitolite` and `gitolite-shell` also into
Put both executables `gitolite` and `gitolite-shell` also into
/usr/libexec/gitolite (i.e., as siblings to the 5 directories mentioned
above). Then *symlink* `/usr/libexec/gitolite/gitolite` to some directory
in the PATH. Do not *copy* it; it must be a symlink.

View File

@ -29,8 +29,8 @@ sub post_update {
local $ENV{GIT_WORK_TREE} = $rc{GL_ADMIN_BASE};
tsh_try("git checkout -f --quiet master");
}
_system("$ENV{GL_BINDIR}/gitolite compile");
_system("$ENV{GL_BINDIR}/gitolite trigger POST_COMPILE");
_system("gitolite compile");
_system("gitolite trigger POST_COMPILE");
exit 0;
}

View File

@ -46,8 +46,8 @@ sub setup {
setup_glrc();
setup_gladmin( $admin, $pubkey, $argv );
_system("$ENV{GL_BINDIR}/gitolite compile");
_system("$ENV{GL_BINDIR}/gitolite trigger POST_COMPILE");
_system("gitolite compile");
_system("gitolite trigger POST_COMPILE");
hook_repos(); # all of them, just to be sure
}