mirror of
https://github.com/git/git.git
synced 2026-04-12 01:40:10 +02:00
Gitweb: add autoconfigure support for minifiers
This will allow users to set a JavaScript/CSS minifier when/if they run the autoconfigure script while building git. Signed-off-by: Mark Rada <marada@uwaterloo.ca> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
0e6ce21361
commit
bb4bbf7582
20
configure.ac
20
configure.ac
@@ -179,6 +179,26 @@ fi],
|
||||
AC_MSG_NOTICE([Will try -pthread then -lpthread to enable POSIX Threads.])
|
||||
])
|
||||
|
||||
# Define option to enable JavaScript minification
|
||||
AC_ARG_ENABLE([jsmin],
|
||||
[AS_HELP_STRING([--enable-jsmin=PATH],
|
||||
[PATH is the name of a JavaScript minifier or the absolute path to one.])],
|
||||
[
|
||||
JSMIN=$enableval;
|
||||
AC_MSG_NOTICE([Setting JSMIN to '$JSMIN' to enable JavaScript minifying])
|
||||
GIT_CONF_APPEND_LINE(JSMIN=$enableval);
|
||||
])
|
||||
|
||||
# Define option to enable CSS minification
|
||||
AC_ARG_ENABLE([cssmin],
|
||||
[AS_HELP_STRING([--enable-cssmin=PATH],
|
||||
[PATH is the name of a CSS minifier or the absolute path to one.])],
|
||||
[
|
||||
CSSMIN=$enableval;
|
||||
AC_MSG_NOTICE([Setting CSSMIN to '$CSSMIN' to enable CSS minifying])
|
||||
GIT_CONF_APPEND_LINE(CSSMIN=$enableval);
|
||||
])
|
||||
|
||||
## Site configuration (override autodetection)
|
||||
## --with-PACKAGE[=ARG] and --without-PACKAGE
|
||||
AC_MSG_NOTICE([CHECKS for site configuration])
|
||||
|
||||
Reference in New Issue
Block a user