author | Lars Hjemli <hjemli@gmail.com> | 2006-12-10 21:41:14 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2006-12-10 21:41:14 (UTC) |
commit | 7640d90b73c01b16bb04ce4c541f52cbaae5f82a (patch) (unidiff) | |
tree | a0ec3e5222dbb0cff965487def39f5781e5cb231 /cgit.c | |
parent | 25105d7ecaba474d4b7c364ebb586aac3dfc5abb (diff) | |
download | cgit-7640d90b73c01b16bb04ce4c541f52cbaae5f82a.zip cgit-7640d90b73c01b16bb04ce4c541f52cbaae5f82a.tar.gz cgit-7640d90b73c01b16bb04ce4c541f52cbaae5f82a.tar.bz2 |
Add license file and copyright notices
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,24 +1,32 @@ | |||
1 | /* cgit.c: cgi for the git scm | ||
2 | * | ||
3 | * Copyright (C) 2006 Lars Hjemli | ||
4 | * | ||
5 | * Licensed under GNU General Public License v2 | ||
6 | * (see COPYING for full license text) | ||
7 | */ | ||
8 | |||
1 | #include "cgit.h" | 9 | #include "cgit.h" |
2 | 10 | ||
3 | static const char cgit_doctype[] = | 11 | static const char cgit_doctype[] = |
4 | "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n" | 12 | "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n" |
5 | " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"; | 13 | " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"; |
6 | 14 | ||
7 | static const char cgit_error[] = | 15 | static const char cgit_error[] = |
8 | "<div class='error'>%s</div>"; | 16 | "<div class='error'>%s</div>"; |
9 | 17 | ||
10 | static const char cgit_lib_error[] = | 18 | static const char cgit_lib_error[] = |
11 | "<div class='error'>%s: %s</div>"; | 19 | "<div class='error'>%s: %s</div>"; |
12 | 20 | ||
13 | int htmlfd = 0; | 21 | int htmlfd = 0; |
14 | 22 | ||
15 | char *cgit_root = "/usr/src/git"; | 23 | char *cgit_root = "/usr/src/git"; |
16 | char *cgit_root_title = "Git repository browser"; | 24 | char *cgit_root_title = "Git repository browser"; |
17 | char *cgit_css = "/cgit.css"; | 25 | char *cgit_css = "/cgit.css"; |
18 | char *cgit_logo = "/git-logo.png"; | 26 | char *cgit_logo = "/git-logo.png"; |
19 | char *cgit_logo_link = "http://www.kernel.org/pub/software/scm/git/docs/"; | 27 | char *cgit_logo_link = "http://www.kernel.org/pub/software/scm/git/docs/"; |
20 | char *cgit_virtual_root = NULL; | 28 | char *cgit_virtual_root = NULL; |
21 | 29 | ||
22 | char *cgit_cache_root = "/var/cache/cgit"; | 30 | char *cgit_cache_root = "/var/cache/cgit"; |
23 | 31 | ||
24 | int cgit_cache_root_ttl = 5; | 32 | int cgit_cache_root_ttl = 5; |