Skip to contentSkip to conversation

Gitweb: add ignore and clean rules for minified files

PATCH Superseded Mark Rada 3 participants 3 messages Jun 15, 2016 Kbuild

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Mark Rada

author
#0 lore raw

PATCH v5 1/6 Gitweb: add ignore and clean rules for minified files

---

No changes since the previous version.

 .gitignore |    1 +
 Makefile   |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
.gitignore +1 -0
index 7b3acb7..4c24152 100644
@@ -156,6 +156,7 @@
 /git-core-*/?*
 /gitk-git/gitk-wish
 /gitweb/gitweb.cgi
+/gitweb/gitweb.min.*
 /test-chmtime
 /test-ctype
 /test-date
Makefile +1 -1
index 6d73a8c..5384d33 100644
@@ -2089,7 +2089,7 @@ clean:
 	$(RM) $(htmldocs).tar.gz $(manpages).tar.gz
 	$(MAKE) -C Documentation/ clean
 ifndef NO_PERL
-	$(RM) gitweb/gitweb.cgi
+	$(RM) gitweb/gitweb.{cgi,min.*}
 	$(MAKE) -C perl clean
 endif
 ifndef NO_PYTHON
Signature · 1 line
1.7.0.3.436.g45b2d
Acked-by on v5 1/6
#1 lore raw
Quoted 1 line · Mark Rada

For what it's worth:

Makefile clean: · line 2094

Quoted 12 lines
Makefile +1 -1
index 6d73a8c..5384d33 100644
@@ -2089,7 +2089,7 @@ clean:
 	$(RM) $(htmldocs).tar.gz $(manpages).tar.gz
 	$(MAKE) -C Documentation/ clean
 ifndef NO_PERL
-	$(RM) gitweb/gitweb.cgi
+	$(RM) gitweb/gitweb.{cgi,min.*}
 	$(MAKE) -C perl clean
 endif

Minor nit: this would be first line that uses {a,b} shell glob construct. Why not write it as:

  -	$(RM) gitweb/gitweb.cgi
  +	$(RM) gitweb/gitweb.cgi gitweb/gitweb.min.*
Signature · 2 lines
Jakub Narebski
Poland
#2 lore raw
Quoted 11 lines · Jakub Narebski

Makefile clean: · line 2094

Quoted 5 lines

ifndef NO_PERL

Makefile +1 -1
-	$(RM) gitweb/gitweb.cgi
+	$(RM) gitweb/gitweb.{cgi,min.*}
 	$(MAKE) -C perl clean
 endif

Minor nit: this would be first line that uses {a,b} shell glob construct. Why not write it as:

  -	$(RM) gitweb/gitweb.cgi
  +	$(RM) gitweb/gitweb.cgi gitweb/gitweb.min.*

Very good point and it is not a "minor nit"; I cannot apply the patch without your fix.

My understanding is that you Ack 1 (with this fix), 2 (with another paragraph in the log message), and 5. Eric Acked 4 and 6 needs to be reworked. I wonder if anybody has comments on 3; I didn't look very closely at it, but it looked sane to me.

With that understanding, I'll queue the whole thing to 'pu', so that they can be reworked and replaced before hitting 'next'.

Thanks, all.