@matheusbsbs / matheus-bagliano / commits / 8515392f5d
Fork 0

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>

Jakub Narebski committed Apr 27, 2010 at 22:45 UTC 8515392f5d4c5a36a0f9e4a73068f7106d7f4638
1 file changed +12 -7
gitweb/INSTALL
+12 -7
@@ -7,7 +7,9 @@ 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
9 $ make prefix=/usr gitweb ;# as yourself
10 - # cp gitweb/git* /var/www/cgi-bin/ ;# as root
10 + # cp gitweb/*.cgi gitweb/*.css \
11 + gitweb/*.js gitweb/*.png \
12 + /var/www/cgi-bin/ ;# as root
13
14 Alternatively you can use autoconf generated ./configure script to
15 set up path to git binaries (via config.mak.autogen), so you can write
@@ -16,7 +18,9 @@ instead
18 $ make configure ;# as yourself
19 $ ./configure --prefix=/usr ;# as yourself
20 $ make gitweb ;# as yourself
19 - # cp gitweb/git* /var/www/cgi-bin/ ;# as root
21 + # cp gitweb/*.cgi gitweb/*.css \
22 + gitweb/*.js gitweb/*.png \
23 + /var/www/cgi-bin/ ;# as root
24
25 The above example assumes that your web server is configured to run
26 [executable] files in /var/www/cgi-bin/ as server scripts (as CGI
@@ -74,9 +78,10 @@ file for gitweb (in gitweb/README).
78 Build example
79 ~~~~~~~~~~~~~
80
77 -- To install gitweb to /var/www/cgi-bin/gitweb/ when git wrapper
78 - is installed at /usr/local/bin/git and the repositories (projects)
79 - we want to display are under /home/local/scm, you can do
81 +- To install gitweb to /var/www/cgi-bin/gitweb/, when git wrapper
82 + is installed at /usr/local/bin/git, the repositories (projects)
83 + we want to display are under /home/local/scm, and you do not use
84 + minifiers, you can do
85
86 make GITWEB_PROJECTROOT="/home/local/scm" \
87 GITWEB_JS="/gitweb/gitweb.js" \
@@ -86,8 +91,8 @@ Build example
91 bindir=/usr/local/bin \
92 gitweb
93
89 - cp -fv ~/git/gitweb/gitweb.{cgi,js,css} \
90 - ~/git/gitweb/git-{favicon,logo}.png \
94 + cp -fv gitweb/gitweb.{cgi,js,css} \
95 + gitweb/git-{favicon,logo}.png \
96 /var/www/cgi-bin/gitweb/
97
98