@@ -3,8 +3,9 @@ GIT web Interface (gitweb) Installation
3
3
4
4
First you have to generate gitweb.cgi from gitweb.perl using
5
5
"make gitweb/gitweb.cgi", then copy appropriate files (gitweb.cgi,
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
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
8
9
9
10
$ make prefix=/usr gitweb/gitweb.cgi ;# as yourself
10
11
# cp gitweb/git* /var/www/cgi-bin/ ;# as root
@@ -62,14 +63,15 @@ file for gitweb (in gitweb/README).
62
63
a suggestion).
63
64
64
65
- You can control where gitweb tries to find its main CSS style file,
65
- its favicon and logo with the GITWEB_CSS, GITWEB_FAVICON and GITWEB_LOGO
66
- build configuration variables. By default gitweb tries to find them
67
- in the same directory as gitweb.cgi script.
66
+ its JavaScript file, its favicon and logo with the GITWEB_CSS, GITWEB_JS
67
+ GITWEB_FAVICON and GITWEB_LOGO build configuration variables. By default
68
+ gitweb tries to find them in the same directory as gitweb.cgi script.
68
69
69
- - You can optionally generate a minified version of gitweb.css by defining
70
- the CSSMIN build configuration variable. By default the non-minified
71
- version of gitweb.css will be used. NOTE: if you enable this option,
72
- substitute gitweb.min.css for all uses of gitweb.css in the help files.
70
+ - You can optionally generate minified versions of gitweb.js and gitweb.css
71
+ by defining the JSMIN and CSSMIN build configuration variables. By default
72
+ the non-minified versions will be used. NOTE: if you enable this option,
73
+ substitute gitweb.min.js and gitweb.min.css for all uses of gitweb.js and
74
+ gitweb.css in the help files.
73
75
74
76
Build example
75
77
~~~~~~~~~~~~~
@@ -79,13 +81,14 @@ Build example
79
81
we want to display are under /home/local/scm, you can do
80
82
81
83
make GITWEB_PROJECTROOT="/home/local/scm" \
84
+ GITWEB_JS="/gitweb/gitweb.js" \
82
85
GITWEB_CSS="/gitweb/gitweb.css" \
83
86
GITWEB_LOGO="/gitweb/git-logo.png" \
84
87
GITWEB_FAVICON="/gitweb/git-favicon.png" \
85
88
bindir=/usr/local/bin \
86
89
gitweb/gitweb.cgi
87
90
88
- cp -fv ~/git/gitweb/gitweb.{cgi,css} \
91
+ cp -fv ~/git/gitweb/gitweb.{cgi,js, css} \
89
92
~/git/gitweb/git-{favicon,logo}.png \
90
93
/var/www/cgi-bin/gitweb/
91
94
0 commit comments