diff options
author | Thomas Hager <duke@sigsegv.at> | 2012-04-18 09:09:24 +0200 |
---|---|---|
committer | Sitaram Chamarty <sitaram@atc.tcs.com> | 2012-04-18 13:42:50 +0530 |
commit | aaccb367ec48ad193413a67fd52565aba320fc00 (patch) | |
tree | 970064a617b34fa710187ab1c78fcc910efa4a6f | |
parent | added new changelog (diff) | |
download | gitolite-gentoo-aaccb367ec48ad193413a67fd52565aba320fc00.tar.gz gitolite-gentoo-aaccb367ec48ad193413a67fd52565aba320fc00.tar.bz2 gitolite-gentoo-aaccb367ec48ad193413a67fd52565aba320fc00.zip |
changes to support Solaris default shell
Solaris default bourne shell does not recognize $(), and does not allow
exporting a variable and assigning a value to it in one step.
-rwxr-xr-x | src/triggers/post-compile/update-git-daemon-access-list | 5 | ||||
-rwxr-xr-x | src/triggers/post-compile/update-gitweb-access-list | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/triggers/post-compile/update-git-daemon-access-list b/src/triggers/post-compile/update-git-daemon-access-list index feb4a37..4585f44 100755 --- a/src/triggers/post-compile/update-git-daemon-access-list +++ b/src/triggers/post-compile/update-git-daemon-access-list @@ -2,8 +2,9 @@ # this is probably the *fastest* git-daemon update possible. -export EO=git-daemon-export-ok -export RB=$(gitolite query-rc GL_REPO_BASE) +EO=git-daemon-export-ok +RB=`gitolite query-rc GL_REPO_BASE` +export EO RB gitolite list-phy-repos | gitolite access % daemon R any | perl -lane ' diff --git a/src/triggers/post-compile/update-gitweb-access-list b/src/triggers/post-compile/update-gitweb-access-list index d7f5a95..f97061f 100755 --- a/src/triggers/post-compile/update-gitweb-access-list +++ b/src/triggers/post-compile/update-gitweb-access-list @@ -4,7 +4,7 @@ # whatever you want and contribute it back, as long as it is upward # compatible. -plf=$(gitolite query-rc GITWEB_PROJECTS_LIST) +plf=`gitolite query-rc GITWEB_PROJECTS_LIST` [ -z "$plf" ] && plf=$HOME/projects.list ( |