Skip to content

Commit

Permalink
gitweb: Improve installation instructions in gitweb/INSTALL
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Narebski <[email protected]>
Acked-by: Mark Rada <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
jnareb authored and gitster committed May 1, 2010
1 parent d599e04 commit 8515392
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions gitweb/INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -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

$ 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
set up path to git binaries (via config.mak.autogen), so you can write
Expand All @@ -16,7 +18,9 @@ instead
$ make configure ;# as yourself
$ ./configure --prefix=/usr ;# 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
[executable] files in /var/www/cgi-bin/ as server scripts (as CGI
Expand Down Expand Up @@ -74,9 +78,10 @@ file for gitweb (in gitweb/README).
Build example
~~~~~~~~~~~~~

- To install gitweb to /var/www/cgi-bin/gitweb/ when git wrapper
is installed at /usr/local/bin/git and the repositories (projects)
we want to display are under /home/local/scm, you can do
- To install gitweb to /var/www/cgi-bin/gitweb/, when git wrapper
is installed at /usr/local/bin/git, the repositories (projects)
we want to display are under /home/local/scm, and you do not use
minifiers, you can do

make GITWEB_PROJECTROOT="/home/local/scm" \
GITWEB_JS="/gitweb/gitweb.js" \
Expand All @@ -86,8 +91,8 @@ Build example
bindir=/usr/local/bin \
gitweb

cp -fv ~/git/gitweb/gitweb.{cgi,js,css} \
~/git/gitweb/git-{favicon,logo}.png \
cp -fv gitweb/gitweb.{cgi,js,css} \
gitweb/git-{favicon,logo}.png \
/var/www/cgi-bin/gitweb/


Expand Down

0 comments on commit 8515392

Please sign in to comment.