@matheusbsbs / matheus-bagliano / commits / e3918594f6
Fork 0

gitweb: update INSTALL to use shorter make target

Gitweb can be generated by the gitweb/gitweb.cgi target or the gitweb target. Since the gitweb target is shorter, I think it would be better to have new users be instructed to use it. Signed-off-by: Mark Rada <marada@uwaterloo.ca> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Mark Rada committed Apr 2, 2010 at 20:37 UTC e3918594f6269b37ad7bd7e419df433b6d586428
1 file changed +7 -9
gitweb/INSTALL
+7 -9
@@ -2,12 +2,11 @@ GIT web Interface (gitweb) Installation
2 =======================================
3
4 First you have to generate gitweb.cgi from gitweb.perl using
5 -"make gitweb/gitweb.cgi", then copy appropriate files (gitweb.cgi,
6 -gitweb.js, gitweb.css, git-logo.png and git-favicon.png) to their
7 -destination. For example if git was (or is) installed with /usr prefix,
8 -you can do
5 +"make gitweb", then copy appropriate files (gitweb.cgi, gitweb.js,
6 +gitweb.css, git-logo.png and git-favicon.png) to their destination.
7 +For example if git was (or is) installed with /usr prefix, you can do
8
10 - $ make prefix=/usr gitweb/gitweb.cgi ;# as yourself
9 + $ make prefix=/usr gitweb ;# as yourself
10 # cp gitweb/git* /var/www/cgi-bin/ ;# as root
11
12 Alternatively you can use autoconf generated ./configure script to
@@ -16,7 +15,7 @@ instead
15
16 $ make configure ;# as yourself
17 $ ./configure --prefix=/usr ;# as yourself
19 - $ make gitweb/gitweb.cgi ;# as yourself
18 + $ make gitweb ;# as yourself
19 # cp gitweb/git* /var/www/cgi-bin/ ;# as root
20
21 The above example assumes that your web server is configured to run
@@ -32,8 +31,7 @@ file for gitweb (in gitweb/README).
31
32 - There are many configuration variables which affect building of
33 gitweb.cgi; see "default configuration for gitweb" section in main
35 - (top dir) Makefile, and instructions for building gitweb/gitweb.cgi
36 - target.
34 + (top dir) Makefile, and instructions for building gitweb target.
35
36 One of the most important is where to find the git wrapper binary. Gitweb
37 tries to find the git wrapper at $(bindir)/git, so you have to set $bindir
@@ -86,7 +84,7 @@ Build example
84 GITWEB_LOGO="/gitweb/git-logo.png" \
85 GITWEB_FAVICON="/gitweb/git-favicon.png" \
86 bindir=/usr/local/bin \
89 - gitweb/gitweb.cgi
87 + gitweb
88
89 cp -fv ~/git/gitweb/gitweb.{cgi,js,css} \
90 ~/git/gitweb/git-{favicon,logo}.png \