Re: [PATCH GSoC 2/3] git-instaweb: Configure it to work with a global server root and projects list
Thanks Devai. It's great.
- pavan
On Sun, May 16, 2010 at 5:46 AM, Dévai Tamás <devait@vnet.hu> wrote:
Show 33 quoted lines
>> +# Default is /usr/share/gitweb
>> +test -z "$root" && root='/usr/share/gitweb'
>
> Just one question: what happens, when one installs to /usr/local (or any
> other directory) instead of /usr? I'd use the $(gitwebdir) variable from
> the Makefile as default, such as
>
> # if installed, it doesn't need further configuration (module_path)
> test -z "$httpd" && httpd='lighttpd -f'
>
> -+# Default is /usr/share/gitweb
> -+test -z "$root" && root='/usr/share/gitweb'
> ++# Default is @@gitwebdir@@
> ++test -z "$root" && root='@@gitwebdir@@'
> +
> # any untaken local port will do...
> test -z "$port" && port=1234
>
> and in the Makefile
>
> sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
> -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
> -e 's/@@NO_CURL@@/$(NO_CURL)/g' \
> ++ -e 's|@@gitwebdir@@|$(gitwebdir)|g' \
> - -e '/@@GITWEB_CGI@@/r gitweb/gitweb.cgi' \
> - -e '/@@GITWEB_CGI@@/d' \
> - -e '/@@GITWEB_CSS@@/r $(GITWEB_CSS)' \
>
> Hope that you find it reasonable.
> --
> Dévai Tamás
>
>