File tree Expand file tree Collapse file tree 3 files changed +22
-16
lines changed
Expand file tree Collapse file tree 3 files changed +22
-16
lines changed Original file line number Diff line number Diff line change @@ -282,10 +282,6 @@ lib = lib
282282# DESTDIR=
283283pathsep = :
284284
285- # JavaScript/CSS minifier invocation that can function as filter
286- JSMIN =
287- CSSMIN =
288-
289285export prefix bindir sharedir sysconfdir
290286
291287CC = gcc
Original file line number Diff line number Diff line change @@ -179,6 +179,26 @@ fi],
179179 AC_MSG_NOTICE ( [ Will try -pthread then -lpthread to enable POSIX Threads.] )
180180] )
181181
182+ # Define option to enable JavaScript minification
183+ AC_ARG_ENABLE ( [ jsmin] ,
184+ [ AS_HELP_STRING ( [ --enable-jsmin=PATH] ,
185+ [ PATH is the name of a JavaScript minifier or the absolute path to one.] ) ] ,
186+ [
187+ JSMIN=$enableval;
188+ AC_MSG_NOTICE ( [ Setting JSMIN to '$JSMIN' to enable JavaScript minifying] )
189+ GIT_CONF_APPEND_LINE(JSMIN=$enableval);
190+ ] )
191+
192+ # Define option to enable CSS minification
193+ AC_ARG_ENABLE ( [ cssmin] ,
194+ [ AS_HELP_STRING ( [ --enable-cssmin=PATH] ,
195+ [ PATH is the name of a CSS minifier or the absolute path to one.] ) ] ,
196+ [
197+ CSSMIN=$enableval;
198+ AC_MSG_NOTICE ( [ Setting CSSMIN to '$CSSMIN' to enable CSS minifying] )
199+ GIT_CONF_APPEND_LINE(CSSMIN=$enableval);
200+ ] )
201+
182202# # Site configuration (override autodetection)
183203# # --with-PACKAGE[=ARG] and --without-PACKAGE
184204AC_MSG_NOTICE ( [ CHECKS for site configuration] )
Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ prefix ?= $(HOME)
1414bindir ?= $(prefix ) /bin
1515RM ?= rm -f
1616
17- # JavaScript/CSS minifier invocation that can function as filter
18- JSMIN ?=
19- CSSMIN ?=
20-
2117# default configuration for gitweb
2218GITWEB_CONFIG = gitweb_config.perl
2319GITWEB_CONFIG_SYSTEM = /etc/gitweb.conf
@@ -30,18 +26,10 @@ GITWEB_STRICT_EXPORT =
3026GITWEB_BASE_URL =
3127GITWEB_LIST =
3228GITWEB_HOMETEXT = indextext.html
33- ifdef CSSMIN
34- GITWEB_CSS = gitweb.min.css
35- else
3629GITWEB_CSS = gitweb.css
37- endif
3830GITWEB_LOGO = git-logo.png
3931GITWEB_FAVICON = git-favicon.png
40- ifdef JSMIN
41- GITWEB_JS = gitweb.min.js
42- else
4332GITWEB_JS = gitweb.js
44- endif
4533GITWEB_SITE_HEADER =
4634GITWEB_SITE_FOOTER =
4735
@@ -95,9 +83,11 @@ all:: gitweb.cgi
9583FILES = gitweb.cgi
9684ifdef JSMIN
9785FILES += gitweb.min.js
86+ GITWEB_JS = gitweb.min.js
9887endif
9988ifdef CSSMIN
10089FILES += gitweb.min.css
90+ GITWEB_CSS = gitweb.min.css
10191endif
10292gitweb.cgi : gitweb.perl $(GITWEB_JS ) $(GITWEB_CSS )
10393
You can’t perform that action at this time.
0 commit comments