author | Lars Hjemli <hjemli@gmail.com> | 2007-05-14 22:48:31 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-05-14 22:48:31 (UTC) |
commit | ea2831f1c826d92c0158474c2d07837ec2f9fd6c (patch) (unidiff) | |
tree | e8d6a89bf0f50835f9c86dd642e7906e1d050df7 /cgit.h | |
parent | 6fb7d09fea94b3dd6932469283358cb24f1e7e29 (diff) | |
download | cgit-ea2831f1c826d92c0158474c2d07837ec2f9fd6c.zip cgit-ea2831f1c826d92c0158474c2d07837ec2f9fd6c.tar.gz cgit-ea2831f1c826d92c0158474c2d07837ec2f9fd6c.tar.bz2 |
Don't hardcode urls when SCRIPT_NAME is available
Also, let the makefile define the name of the installed cgi and
use that definition as a default value for cgit_script_name variable.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -54,48 +54,49 @@ struct commitinfo { | |||
54 | char *committer_email; | 54 | char *committer_email; |
55 | unsigned long committer_date; | 55 | unsigned long committer_date; |
56 | char *subject; | 56 | char *subject; |
57 | char *msg; | 57 | char *msg; |
58 | }; | 58 | }; |
59 | 59 | ||
60 | struct taginfo { | 60 | struct taginfo { |
61 | char *tagger; | 61 | char *tagger; |
62 | char *tagger_email; | 62 | char *tagger_email; |
63 | int tagger_date; | 63 | int tagger_date; |
64 | char *msg; | 64 | char *msg; |
65 | }; | 65 | }; |
66 | 66 | ||
67 | extern const char cgit_version[]; | 67 | extern const char cgit_version[]; |
68 | 68 | ||
69 | extern struct repolist cgit_repolist; | 69 | extern struct repolist cgit_repolist; |
70 | extern struct repoinfo *cgit_repo; | 70 | extern struct repoinfo *cgit_repo; |
71 | 71 | ||
72 | extern char *cgit_root_title; | 72 | extern char *cgit_root_title; |
73 | extern char *cgit_css; | 73 | extern char *cgit_css; |
74 | extern char *cgit_logo; | 74 | extern char *cgit_logo; |
75 | extern char *cgit_logo_link; | 75 | extern char *cgit_logo_link; |
76 | extern char *cgit_module_link; | 76 | extern char *cgit_module_link; |
77 | extern char *cgit_virtual_root; | 77 | extern char *cgit_virtual_root; |
78 | extern char *cgit_script_name; | ||
78 | extern char *cgit_cache_root; | 79 | extern char *cgit_cache_root; |
79 | 80 | ||
80 | extern int cgit_nocache; | 81 | extern int cgit_nocache; |
81 | extern int cgit_snapshots; | 82 | extern int cgit_snapshots; |
82 | extern int cgit_max_lock_attempts; | 83 | extern int cgit_max_lock_attempts; |
83 | extern int cgit_cache_root_ttl; | 84 | extern int cgit_cache_root_ttl; |
84 | extern int cgit_cache_repo_ttl; | 85 | extern int cgit_cache_repo_ttl; |
85 | extern int cgit_cache_dynamic_ttl; | 86 | extern int cgit_cache_dynamic_ttl; |
86 | extern int cgit_cache_static_ttl; | 87 | extern int cgit_cache_static_ttl; |
87 | extern int cgit_cache_max_create_time; | 88 | extern int cgit_cache_max_create_time; |
88 | 89 | ||
89 | extern int cgit_max_msg_len; | 90 | extern int cgit_max_msg_len; |
90 | extern int cgit_max_commit_count; | 91 | extern int cgit_max_commit_count; |
91 | 92 | ||
92 | extern char *cgit_repo_name; | 93 | extern char *cgit_repo_name; |
93 | extern char *cgit_repo_desc; | 94 | extern char *cgit_repo_desc; |
94 | extern char *cgit_repo_owner; | 95 | extern char *cgit_repo_owner; |
95 | 96 | ||
96 | extern int cgit_query_has_symref; | 97 | extern int cgit_query_has_symref; |
97 | extern int cgit_query_has_sha1; | 98 | extern int cgit_query_has_sha1; |
98 | 99 | ||
99 | extern char *cgit_querystring; | 100 | extern char *cgit_querystring; |
100 | extern char *cgit_query_repo; | 101 | extern char *cgit_query_repo; |
101 | extern char *cgit_query_page; | 102 | extern char *cgit_query_page; |