Skip to content

Commit 8515392

Browse files
jnarebgitster
authored andcommitted
gitweb: Improve installation instructions in gitweb/INSTALL
Signed-off-by: Jakub Narebski <[email protected]> Acked-by: Mark Rada <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d599e04 commit 8515392

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

gitweb/INSTALL

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ gitweb.css, git-logo.png and git-favicon.png) to their destination.
77
For example if git was (or is) installed with /usr prefix, you can do
88

99
$ 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
1113

1214
Alternatively you can use autoconf generated ./configure script to
1315
set up path to git binaries (via config.mak.autogen), so you can write
@@ -16,7 +18,9 @@ instead
1618
$ make configure ;# as yourself
1719
$ ./configure --prefix=/usr ;# as yourself
1820
$ 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
2024

2125
The above example assumes that your web server is configured to run
2226
[executable] files in /var/www/cgi-bin/ as server scripts (as CGI
@@ -74,9 +78,10 @@ file for gitweb (in gitweb/README).
7478
Build example
7579
~~~~~~~~~~~~~
7680

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
8085

8186
make GITWEB_PROJECTROOT="/home/local/scm" \
8287
GITWEB_JS="/gitweb/gitweb.js" \
@@ -86,8 +91,8 @@ Build example
8691
bindir=/usr/local/bin \
8792
gitweb
8893

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 \
9196
/var/www/cgi-bin/gitweb/
9297

9398

0 commit comments

Comments
 (0)