Re: [PATCH GSoC 2/3] git-instaweb: Configure it to work with a global server root and projects list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Devai. It's great.

- pavan

On Sun, May 16, 2010 at 5:46 AM, Dévai Tamás <devait@xxxxxxx> wrote:
>> +# 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
>
>
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]