# [PATCHv2] Add ignore and clean rules for gitweb.min.js

2 messages from 2010-03-19 to 2010-03-20. Participants: Mark Rada.
Thread: https://gitlist.dev/t/23090

## Mark Rada, 2010-03-19 21:40

Subject: [PATCHv2] Add ignore and clean rules for gitweb.min.js
Message-ID: <4BA3EF47.7060905@mailservices.uwaterloo.ca>
URL: https://gitlist.dev/e/4BA3EF47.7060905%40mailservices.uwaterloo.ca

```
Signed-off-by: Mark Rada <marada@uwaterloo.ca>

---

The instaweb patch from earlier was about making the instaweb
script aware that users can generate a minified version of 
gitweb.js. I think the stuff I am doing in this patch was just
forgotten when JSMIN support was first added for gitweb.

Junio, I went and changed the clean target changes according
to your comment.


 .gitignore |    1 +
 Makefile   |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/.gitignore b/.gitignore
index 7b3acb7..4c24152 100644
--- a/.gitignore
+++ b/.gitignore
@@ -156,6 +156,7 @@
 /git-core-*/?*
 /gitk-git/gitk-wish
 /gitweb/gitweb.cgi
+/gitweb/gitweb.min.*
 /test-chmtime
 /test-ctype
 /test-date
diff --git a/Makefile b/Makefile
index f80b25e..aa1996d 100644
--- a/Makefile
+++ b/Makefile
@@ -2077,7 +2077,7 @@ clean:
 	$(RM) $(htmldocs).tar.gz $(manpages).tar.gz
 	$(MAKE) -C Documentation/ clean
 ifndef NO_PERL
-	$(RM) gitweb/gitweb.cgi
+	$(RM) gitweb/{gitweb.cgi,gitweb.min.js}
 	$(MAKE) -C perl clean
 endif
 ifndef NO_PYTHON
-- 
1.7.0.2.279.gf1ba1c

```

## Mark Rada, 2010-03-20 03:05

Subject: Re: [PATCHv2] Add ignore and clean rules for gitweb.min.js
Message-ID: <4BA43B7B.7030409@mailservices.uwaterloo.ca>
URL: https://gitlist.dev/e/4BA43B7B.7030409%40mailservices.uwaterloo.ca
In-Reply-To: <7viq8sc6rb.fsf@alter.siamese.dyndns.org>

```
Junio,

I went and added some other things that should probably be squashed
into this commit, unless it is too late. Updating documentation for
jsmin and adding autoconfigure support for it.

-- 
Mark Rada (ferrous26)
marada@uwaterloo.ca


On 10-03-19 5:59 PM, Junio C Hamano wrote:
> Mark Rada <marada@uwaterloo.ca> writes:
> 
>> Signed-off-by: Mark Rada <marada@uwaterloo.ca>
>>
>> ---
>>
>> The instaweb patch from earlier was about making the instaweb
>> script aware that users can generate a minified version of 
>> gitweb.js. I think the stuff I am doing in this patch was just
>> forgotten when JSMIN support was first added for gitweb.
>>
>> Junio, I went and changed the clean target changes according
>> to your comment.
> 
> Thanks, will queue.

```
