git-instaweb: improve auto-discovery of httpd and call conventions.
commit43d60d2e59cb466717290984becc8687fc632ca1
authorFlavio Poletti <flavio@polettix.it>
Thu, 12 Jun 2008 21:54:55 +0000 (12 23:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 14 Jun 2008 05:08:30 +0000 (13 22:08 -0700)
tree4bf83b234eaa35f9cf8ec747d3b5614866d295f6
parentd88593fa0412a4f0a363860d879e97635c118616
git-instaweb: improve auto-discovery of httpd and call conventions.

This patch allows calling:

   git-instaweb -d apache2

and have the script Do The Right Thing. In particular, the auto-discovery
mechanism has been extended in order to be used for module listing as
well, and the call convention is that if the daemon is apache2/lighttpd
and the parameter to the "-d" option does not end by "-f", the "-f" is
added to the end of the option itself.

Change all backticks to $( ... ) as per Documentation/CodingGuidelines.

Signed-off-by: Flavio Poletti <flavio@polettix.it>
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-instaweb.sh