35
CGI->compile() if $ENV{'MOD_PERL'};
36
}
37
38
-our $version = "++GIT_VERSION++";
38
+our $version = "@GIT_VERSION@";
39
40
our ($my_url, $my_uri, $base_url, $path_info, $home_link);
41
sub evaluate_uri {
80
81
# core git executable to use
82
# this can just be "git" if your webserver has a sensible PATH
83
-our $GIT = "++GIT_BINDIR++/git";
83
+our $GIT = "@GIT_BINDIR@/git";
84
85
# absolute fs-path which will be prepended to the project path
86
#our $projectroot = "/pub/scm";
87
-our $projectroot = "++GITWEB_PROJECTROOT++";
87
+our $projectroot = "@GITWEB_PROJECTROOT@";
88
89
# fs traversing limit for getting project list
90
# the number is relative to the projectroot
91
-our $project_maxdepth = "++GITWEB_PROJECT_MAXDEPTH++";
91
+our $project_maxdepth = "@GITWEB_PROJECT_MAXDEPTH@";
92
93
# string of the home link on top of all pages
94
-our $home_link_str = "++GITWEB_HOME_LINK_STR++";
94
+our $home_link_str = "@GITWEB_HOME_LINK_STR@";
95
96
# extra breadcrumbs preceding the home link
97
our @extra_breadcrumbs = ();
98
99
# name of your site or organization to appear in page titles
100
# replace this with something more descriptive for clearer bookmarks
101
-our $site_name = "++GITWEB_SITENAME++"
101
+our $site_name = "@GITWEB_SITENAME@"
102
|| ($ENV{'SERVER_NAME'} || "Untitled") . " Git";
103
104
# html snippet to include in the <head> section of each page
105
-our $site_html_head_string = "++GITWEB_SITE_HTML_HEAD_STRING++";
105
+our $site_html_head_string = "@GITWEB_SITE_HTML_HEAD_STRING@";
106
# filename of html text to include at top of each page
107
-our $site_header = "++GITWEB_SITE_HEADER++";
107
+our $site_header = "@GITWEB_SITE_HEADER@";
108
# html text to include at home page
109
-our $home_text = "++GITWEB_HOMETEXT++";
109
+our $home_text = "@GITWEB_HOMETEXT@";
110
# filename of html text to include at bottom of each page
111
-our $site_footer = "++GITWEB_SITE_FOOTER++";
111
+our $site_footer = "@GITWEB_SITE_FOOTER@";
112
113
# URI of stylesheets
114
-our @stylesheets = ("++GITWEB_CSS++");
114
+our @stylesheets = ("@GITWEB_CSS@");
115
# URI of a single stylesheet, which can be overridden in GITWEB_CONFIG.
116
our $stylesheet = undef;
117
# URI of GIT logo (72x27 size)
118
-our $logo = "++GITWEB_LOGO++";
118
+our $logo = "@GITWEB_LOGO@";
119
# URI of GIT favicon, assumed to be image/png type
120
-our $favicon = "++GITWEB_FAVICON++";
120
+our $favicon = "@GITWEB_FAVICON@";
121
# URI of gitweb.js (JavaScript code for gitweb)
122
-our $javascript = "++GITWEB_JS++";
122
+our $javascript = "@GITWEB_JS@";
123
124
# URI and label (title) of GIT logo link
125
#our $logo_url = "https://www.kernel.org/pub/software/scm/git/docs/";
128
our $logo_label = "git homepage";
129
130
# source of projects list
131
-our $projects_list = "++GITWEB_LIST++";
131
+our $projects_list = "@GITWEB_LIST@";
132
133
# the width (in characters) of the projects list "Description" column
134
our $projects_list_description_width = 25;
147
148
# show repository only if this file exists
149
# (only effective if this variable evaluates to true)
150
-our $export_ok = "++GITWEB_EXPORT_OK++";
150
+our $export_ok = "@GITWEB_EXPORT_OK@";
151
152
# don't generate age column on the projects list page
153
our $omit_age_column = 0;
161
our $export_auth_hook = undef;
162
163
# only allow viewing of repositories also shown on the overview page
164
-our $strict_export = "++GITWEB_STRICT_EXPORT++";
164
+our $strict_export = "@GITWEB_STRICT_EXPORT@";
165
166
# list of git base URLs used for URL to where fetch project from,
167
# i.e. full URL is "$git_base_url/$project"
168
-our @git_base_url_list = grep { $_ ne '' } ("++GITWEB_BASE_URL++");
168
+our @git_base_url_list = grep { $_ ne '' } ("@GITWEB_BASE_URL@");
169
170
# default blob_plain mimetype and default charset for text/plain blob
171
our $default_blob_plain_mimetype = 'text/plain';
200
# http://andre-simon.de/zip/download.php due to assumptions about parameters and output).
201
# Useful if highlight is not installed on your webserver's PATH.
202
# [Default: highlight]
203
-our $highlight_bin = "++HIGHLIGHT_BIN++";
203
+our $highlight_bin = "@HIGHLIGHT_BIN@";
204
205
# information about snapshot formats that gitweb is capable of serving
206
our %known_snapshot_formats = (
741
742
our ($GITWEB_CONFIG, $GITWEB_CONFIG_SYSTEM, $GITWEB_CONFIG_COMMON);
743
sub evaluate_gitweb_config {
744
- our $GITWEB_CONFIG = $ENV{'GITWEB_CONFIG'} || "++GITWEB_CONFIG++";
745
- our $GITWEB_CONFIG_SYSTEM = $ENV{'GITWEB_CONFIG_SYSTEM'} || "++GITWEB_CONFIG_SYSTEM++";
746
- our $GITWEB_CONFIG_COMMON = $ENV{'GITWEB_CONFIG_COMMON'} || "++GITWEB_CONFIG_COMMON++";
744
+ our $GITWEB_CONFIG = $ENV{'GITWEB_CONFIG'} || "@GITWEB_CONFIG@";
745
+ our $GITWEB_CONFIG_SYSTEM = $ENV{'GITWEB_CONFIG_SYSTEM'} || "@GITWEB_CONFIG_SYSTEM@";
746
+ our $GITWEB_CONFIG_COMMON = $ENV{'GITWEB_CONFIG_COMMON'} || "@GITWEB_CONFIG_COMMON@";
747
748
# Protect against duplications of file names, to not read config twice.
749
# Only one of $GITWEB_CONFIG and $GITWEB_CONFIG_SYSTEM is used, so