git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add ignore and clean rules for gitweb.min.js

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 19, 2010, 21:06 UTC
Message-ID
<7vbpekf2cz.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4BA3D9E2.5070401@mailservices.uwaterloo.ca>
Mark Rada <marada@uwaterloo.ca> writes:
> Signed-off-by: Mark Rada <marada@uwaterloo.ca>
Thanks; one question and a comment.
Show 17 quoted lines
> ---
>  .gitignore |    1 +
>  Makefile   |    3 +++
>  2 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/.gitignore b/.gitignore
> index 7b3acb7..3558dd2 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -156,6 +156,7 @@
>  /git-core-*/?*
>  /gitk-git/gitk-wish
>  /gitweb/gitweb.cgi
> +/gitweb/gitweb.min.js
>  /test-chmtime
>  /test-ctype
>  /test-date
Question: should this be part of your earlier "instaweb" patch, or are
they independent?
Show 13 quoted lines
> diff --git a/Makefile b/Makefile
> index f80b25e..cdf16c2 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -2078,6 +2078,9 @@ clean:
>  	$(MAKE) -C Documentation/ clean
>  ifndef NO_PERL
>  	$(RM) gitweb/gitweb.cgi
> +ifdef JSMIN
> +	$(RM) gitweb/gitweb.min.js
> +endif #JSMIN
>  	$(MAKE) -C perl clean
>  endif

Running "make clean" in perl/ should stay in "ifndef NO_PERL", but I think removal of both gitweb/{gitweb.cgi,gitweb.min.js} should be unconditional; it does not hurt as $(RM) is "rm -f" (i.e. don't complain to ENOENT).

Previous: Mark Rada
Message 2 of 2 in “Add ignore and clean rules for gitweb.min.js”
  1. Add ignore and clean rules for gitweb.min.jsMark Rada, Mar 19, 2010
  2. Junio C HamanoMar 19, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.