test packaging instructions and make required changes
This commit is contained in:
parent
27c0190b76
commit
72b6a54e0a
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue