Merge branch 'lt/web'
This commit is contained in:
commit
efced1e06e
1
.gitignore
vendored
1
.gitignore
vendored
@ -125,6 +125,7 @@ git-verify-tag
|
|||||||
git-whatchanged
|
git-whatchanged
|
||||||
git-write-tree
|
git-write-tree
|
||||||
git-core-*/?*
|
git-core-*/?*
|
||||||
|
gitweb/gitweb.cgi
|
||||||
test-date
|
test-date
|
||||||
test-delta
|
test-delta
|
||||||
test-dump-cache-tree
|
test-dump-cache-tree
|
||||||
|
30
Makefile
30
Makefile
@ -121,6 +121,15 @@ template_dir = $(prefix)/share/git-core/templates/
|
|||||||
GIT_PYTHON_DIR = $(prefix)/share/git-core/python
|
GIT_PYTHON_DIR = $(prefix)/share/git-core/python
|
||||||
# DESTDIR=
|
# DESTDIR=
|
||||||
|
|
||||||
|
# default configuration for gitweb
|
||||||
|
GITWEB_CONFIG = gitweb_config.perl
|
||||||
|
GITWEB_SITENAME =
|
||||||
|
GITWEB_PROJECTROOT = /pub/git
|
||||||
|
GITWEB_LIST =
|
||||||
|
GITWEB_HOMETEXT = indextext.html
|
||||||
|
GITWEB_CSS = gitweb.css
|
||||||
|
GITWEB_LOGO = git-logo.png
|
||||||
|
|
||||||
export prefix bindir gitexecdir template_dir GIT_PYTHON_DIR
|
export prefix bindir gitexecdir template_dir GIT_PYTHON_DIR
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
@ -544,7 +553,7 @@ LIB_OBJS += $(COMPAT_OBJS)
|
|||||||
export prefix TAR INSTALL DESTDIR SHELL_PATH template_dir
|
export prefix TAR INSTALL DESTDIR SHELL_PATH template_dir
|
||||||
### Build rules
|
### Build rules
|
||||||
|
|
||||||
all: $(ALL_PROGRAMS) $(BUILT_INS) git$X gitk
|
all: $(ALL_PROGRAMS) $(BUILT_INS) git$X gitk gitweb/gitweb.cgi
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(MAKE) -C templates
|
$(MAKE) -C templates
|
||||||
@ -602,6 +611,22 @@ git-status: git-commit
|
|||||||
cp $< $@+
|
cp $< $@+
|
||||||
mv $@+ $@
|
mv $@+ $@
|
||||||
|
|
||||||
|
gitweb/gitweb.cgi: gitweb/gitweb.perl
|
||||||
|
rm -f $@ $@+
|
||||||
|
sed -e '1s|#!.*perl|#!$(PERL_PATH_SQ)|' \
|
||||||
|
-e 's|++GIT_VERSION++|$(GIT_VERSION)|g' \
|
||||||
|
-e 's|++GIT_BINDIR++|$(bindir)|g' \
|
||||||
|
-e 's|++GITWEB_CONFIG++|$(GITWEB_CONFIG)|g' \
|
||||||
|
-e 's|++GITWEB_SITENAME++|$(GITWEB_SITENAME)|g' \
|
||||||
|
-e 's|++GITWEB_PROJECTROOT++|$(GITWEB_PROJECTROOT)|g' \
|
||||||
|
-e 's|++GITWEB_LIST++|$(GITWEB_LIST)|g' \
|
||||||
|
-e 's|++GITWEB_HOMETEXT++|$(GITWEB_HOMETEXT)|g' \
|
||||||
|
-e 's|++GITWEB_CSS++|$(GITWEB_CSS)|g' \
|
||||||
|
-e 's|++GITWEB_LOGO++|$(GITWEB_LOGO)|g' \
|
||||||
|
$< >$@+
|
||||||
|
chmod +x $@+
|
||||||
|
mv $@+ $@
|
||||||
|
|
||||||
git-instaweb: git-instaweb.sh gitweb/gitweb.cgi gitweb/gitweb.css
|
git-instaweb: git-instaweb.sh gitweb/gitweb.cgi gitweb/gitweb.css
|
||||||
rm -f $@ $@+
|
rm -f $@ $@+
|
||||||
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
|
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
|
||||||
@ -612,7 +637,7 @@ git-instaweb: git-instaweb.sh gitweb/gitweb.cgi gitweb/gitweb.css
|
|||||||
-e '/@@GITWEB_CGI@@/d' \
|
-e '/@@GITWEB_CGI@@/d' \
|
||||||
-e '/@@GITWEB_CSS@@/r gitweb/gitweb.css' \
|
-e '/@@GITWEB_CSS@@/r gitweb/gitweb.css' \
|
||||||
-e '/@@GITWEB_CSS@@/d' \
|
-e '/@@GITWEB_CSS@@/d' \
|
||||||
$@.sh | sed "s|/usr/bin/git|$(bindir)/git|" > $@+
|
$@.sh > $@+
|
||||||
chmod +x $@+
|
chmod +x $@+
|
||||||
mv $@+ $@
|
mv $@+ $@
|
||||||
|
|
||||||
@ -818,6 +843,7 @@ clean:
|
|||||||
rm -rf $(GIT_TARNAME) .doc-tmp-dir
|
rm -rf $(GIT_TARNAME) .doc-tmp-dir
|
||||||
rm -f $(GIT_TARNAME).tar.gz git-core_$(GIT_VERSION)-*.tar.gz
|
rm -f $(GIT_TARNAME).tar.gz git-core_$(GIT_VERSION)-*.tar.gz
|
||||||
rm -f $(htmldocs).tar.gz $(manpages).tar.gz
|
rm -f $(htmldocs).tar.gz $(manpages).tar.gz
|
||||||
|
rm -f gitweb/gitweb.cgi
|
||||||
$(MAKE) -C Documentation/ clean
|
$(MAKE) -C Documentation/ clean
|
||||||
$(MAKE) -C templates clean
|
$(MAKE) -C templates clean
|
||||||
$(MAKE) -C t/ clean
|
$(MAKE) -C t/ clean
|
||||||
|
@ -5,5 +5,33 @@ The one working on:
|
|||||||
|
|
||||||
From the git version 1.4.0 gitweb is bundled with git.
|
From the git version 1.4.0 gitweb is bundled with git.
|
||||||
|
|
||||||
Any comment/question/concern to:
|
|
||||||
|
How to configure gitweb for your local system:
|
||||||
|
|
||||||
|
You can specify the following configuration variables when building GIT:
|
||||||
|
* GITWEB_SITENAME
|
||||||
|
Shown in the title of all generated pages, defaults to the servers name.
|
||||||
|
* GITWEB_PROJECTROOT
|
||||||
|
The root directory for all projects shown by gitweb.
|
||||||
|
* GITWEB_LIST
|
||||||
|
points to a directory to scan for projects (defaults to project root)
|
||||||
|
or to a file for explicit listing of projects.
|
||||||
|
* GITWEB_HOMETEXT
|
||||||
|
points to an .html file which is included on the gitweb project
|
||||||
|
overview page.
|
||||||
|
* GITWEB_CSS
|
||||||
|
Points to the location where you put gitweb.css on your web server.
|
||||||
|
* GITWEB_LOGO
|
||||||
|
Points to the location where you put git-logo.png on your web server.
|
||||||
|
* GITWEB_CONFIG
|
||||||
|
This file will be loaded using 'require'. If the environment
|
||||||
|
$GITWEB_CONFIG is set when gitweb.cgi is executed the file in the
|
||||||
|
environment variable will be loaded instead of the file
|
||||||
|
specified when gitweb.cgi was created.
|
||||||
|
|
||||||
|
Originally written by:
|
||||||
Kay Sievers <kay.sievers@vrfy.org>
|
Kay Sievers <kay.sievers@vrfy.org>
|
||||||
|
|
||||||
|
Any comment/question/concern to:
|
||||||
|
Git mailing list <git@vger.kernel.org>
|
||||||
|
|
||||||
|
BIN
gitweb/git-logo.png
Normal file
BIN
gitweb/git-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 208 B |
@ -171,6 +171,10 @@ tr.dark {
|
|||||||
background-color: #f6f6f0;
|
background-color: #f6f6f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tr.dark2 {
|
||||||
|
background-color: #f6f6f0;
|
||||||
|
}
|
||||||
|
|
||||||
tr.dark:hover {
|
tr.dark:hover {
|
||||||
background-color: #edece6;
|
background-color: #edece6;
|
||||||
}
|
}
|
||||||
@ -181,12 +185,16 @@ td {
|
|||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
td.link {
|
td.link, td.selflink {
|
||||||
padding: 2px 5px;
|
padding: 2px 5px;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
td.selflink {
|
||||||
|
padding-right: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
td.sha1 {
|
td.sha1 {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
@ -196,6 +204,10 @@ td.error {
|
|||||||
background-color: yellow;
|
background-color: yellow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
td.current_head {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
table.diff_tree span.file_status.new {
|
table.diff_tree span.file_status.new {
|
||||||
color: #008000;
|
color: #008000;
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user