git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: Mark Rada <marada@uwaterloo.ca>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCHv5 3/6] Gitweb: add autoconfigure support for minifiers
Date: Sat, 3 Apr 2010 00:08:42 +0200	[thread overview]
Message-ID: <201004030008.43513.jnareb@gmail.com> (raw)
In-Reply-To: <4BB6294A.7020800@mailservices.uwaterloo.ca>

Mark Rada wrote:

>>> Makefile        |    4 ----
>>> configure.ac    |   20 ++++++++++++++++++++
>>> gitweb/Makefile |   14 ++------------
>>> 3 files changed, 22 insertions(+), 16 deletions(-)
>>
>> Why there is no change to config.mak.in?  I would thought that it
>> would contain JSMIN=@JSMIN@ etc.
>>
>> But see also below: perhaps current version is a better version.
>  
> I don't understand what you mean by this. Are you saying that the
> patch is good as is?

Yes, I think that while it could be improved a bit, it is good as
it is now.

I'm sorry for causing confusion: at first I was wondering why you do 
not use JSMIN=@JSMIN@ etc. in config.mak.in, but then I noticed that
other existing configuration uses "add to config.mak.append" trick.

[...]
>>> +# Define option to enable CSS minification
>>> +AC_ARG_ENABLE([cssmin],
>>> + [AS_HELP_STRING([--enable-cssmin=ARG],
>>> +   [ARG is the value to pass to make to enable CSS minification.])],
>>> + [
>>> +   CSSMIN=$enableval;
>>> +   AC_MSG_NOTICE([Setting CSSMIN to '$CSSMIN' to enable CSS minifying])
>>> +   GIT_CONF_APPEND_LINE(CSSMIN=$enableval);
>>> + ])
>>> +
>>
>> Why not follow the code as it was done e.g. for iconv (--without-iconv
>> and --with-iconv=path); this would require JSMIN=@JSMIN@ in 
>> config.mak.in (and respectively for CSSMIN).

This is about alternate solution; please discard this question.

>> Alternatively, if you decide on appending to config.mak.autogen (by the
>> way of config.mak.append) instead of filling config.mak.in, why not use
>> ready macro GIT_PARSE_WITH_SET_MAKE_VAR?
>  
> I think this is what I am really not understanding here. Are you saying
> that you think it would be better to use —with-OPT=PATH instead of
> —enable-OPT=PATH? 
> 
> Is this just a preference? I'm not seeing the problem with —enable-OPT..
> This is confusing me a bit...

Well, I haven't noticed that GIT_PARSE_WITH_SET_MAKE_VAR uses 
—with-OPT=PATH and not —enable-OPT=PATH.

What would be nice to have is GIT_PARSE_ENABLE_SET_MAKE_VAR macro... but
for only two callsites it might be overkill.

-- 
Jakub Narebski
Poland

      reply	other threads:[~2010-04-02 22:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-01  5:36 [PATCHv5 3/6] Gitweb: add autoconfigure support for minifiers Mark Rada
2010-04-01 22:40 ` Jakub Narebski
     [not found]   ` <CBD7C6CF-01CB-4525-8AAB-B1E8086CA06E@mailservices.uwaterloo.ca>
2010-04-02 17:28     ` Mark Rada
2010-04-02 22:08       ` Jakub Narebski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201004030008.43513.jnareb@gmail.com \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=marada@uwaterloo.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).