test packaging instructions and make required changes

This commit is contained in:
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: With that said, here's one way to package gitolite:
* Put the two executables (gitolite and gitolite-shell) somewhere in PATH. * Put the executable `gitolite` somewhere in PATH. Put the executable
Then change the 2 assignments to `$ENV{GL_BINDIR}`, one in 'gitolite', one `gitolite-shell` in /usr/libexec/gitolite (along with those 5 directories).
in 'gitolite-shell', to "/usr/libexec/gitolite".
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. This is equivalent to "make" embedding the exec-path into the executable.
**OR** **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 /usr/libexec/gitolite (i.e., as siblings to the 5 directories mentioned
above). Then *symlink* `/usr/libexec/gitolite/gitolite` to some directory above). Then *symlink* `/usr/libexec/gitolite/gitolite` to some directory
in the PATH. Do not *copy* it; it must be a symlink. 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}; local $ENV{GIT_WORK_TREE} = $rc{GL_ADMIN_BASE};
tsh_try("git checkout -f --quiet master"); tsh_try("git checkout -f --quiet master");
} }
_system("$ENV{GL_BINDIR}/gitolite compile"); _system("gitolite compile");
_system("$ENV{GL_BINDIR}/gitolite trigger POST_COMPILE"); _system("gitolite trigger POST_COMPILE");
exit 0; exit 0;
} }

View file

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