gitweb: Improve installation instructions in gitweb/INSTALL
Signed-off-by: Jakub Narebski <jnareb@gmail.com> Acked-by: Mark Rada <marada@uwaterloo.ca> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
d599e0484f
commit
8515392f5d
|
@ -7,7 +7,9 @@ gitweb.css, git-logo.png and git-favicon.png) to their destination.
|
||||||
For example if git was (or is) installed with /usr prefix, you can do
|
For example if git was (or is) installed with /usr prefix, you can do
|
||||||
|
|
||||||
$ make prefix=/usr gitweb ;# as yourself
|
$ make prefix=/usr gitweb ;# as yourself
|
||||||
# cp gitweb/git* /var/www/cgi-bin/ ;# as root
|
# cp gitweb/*.cgi gitweb/*.css \
|
||||||
|
gitweb/*.js gitweb/*.png \
|
||||||
|
/var/www/cgi-bin/ ;# as root
|
||||||
|
|
||||||
Alternatively you can use autoconf generated ./configure script to
|
Alternatively you can use autoconf generated ./configure script to
|
||||||
set up path to git binaries (via config.mak.autogen), so you can write
|
set up path to git binaries (via config.mak.autogen), so you can write
|
||||||
|
@ -16,7 +18,9 @@ instead
|
||||||
$ make configure ;# as yourself
|
$ make configure ;# as yourself
|
||||||
$ ./configure --prefix=/usr ;# as yourself
|
$ ./configure --prefix=/usr ;# as yourself
|
||||||
$ make gitweb ;# as yourself
|
$ make gitweb ;# as yourself
|
||||||
# cp gitweb/git* /var/www/cgi-bin/ ;# as root
|
# cp gitweb/*.cgi gitweb/*.css \
|
||||||
|
gitweb/*.js gitweb/*.png \
|
||||||
|
/var/www/cgi-bin/ ;# as root
|
||||||
|
|
||||||
The above example assumes that your web server is configured to run
|
The above example assumes that your web server is configured to run
|
||||||
[executable] files in /var/www/cgi-bin/ as server scripts (as CGI
|
[executable] files in /var/www/cgi-bin/ as server scripts (as CGI
|
||||||
|
@ -74,9 +78,10 @@ file for gitweb (in gitweb/README).
|
||||||
Build example
|
Build example
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
- To install gitweb to /var/www/cgi-bin/gitweb/ when git wrapper
|
- To install gitweb to /var/www/cgi-bin/gitweb/, when git wrapper
|
||||||
is installed at /usr/local/bin/git and the repositories (projects)
|
is installed at /usr/local/bin/git, the repositories (projects)
|
||||||
we want to display are under /home/local/scm, you can do
|
we want to display are under /home/local/scm, and you do not use
|
||||||
|
minifiers, you can do
|
||||||
|
|
||||||
make GITWEB_PROJECTROOT="/home/local/scm" \
|
make GITWEB_PROJECTROOT="/home/local/scm" \
|
||||||
GITWEB_JS="/gitweb/gitweb.js" \
|
GITWEB_JS="/gitweb/gitweb.js" \
|
||||||
|
@ -86,8 +91,8 @@ Build example
|
||||||
bindir=/usr/local/bin \
|
bindir=/usr/local/bin \
|
||||||
gitweb
|
gitweb
|
||||||
|
|
||||||
cp -fv ~/git/gitweb/gitweb.{cgi,js,css} \
|
cp -fv gitweb/gitweb.{cgi,js,css} \
|
||||||
~/git/gitweb/git-{favicon,logo}.png \
|
gitweb/git-{favicon,logo}.png \
|
||||||
/var/www/cgi-bin/gitweb/
|
/var/www/cgi-bin/gitweb/
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue