Re: New tab themes



On Tue, 1 Feb 2011 19:10:48 +0100, Christopher Roy Bratusek wrote:
> Besides rep's tar-file-handler isn't good enough for this theme ... so sawfish
> will install the .tar.gz ('cause it's way easier to handle it in Makefile), but 
> make will afterwards uncompress (+ rm the .tar.gz). That means Sawfish does 
> start up much faster than it did with DarkTab previously (StyleTab took almost 
> 30sek to load as .tar.gz).

Aha! A couple of weeks ago I stopped compressing themes to hasten
installations, but I didn't know it slows down loading. I've attached
a patch for themes/Makefile.in. (My amd64 is slow. i7 is 4-20 times
faster than my cpu ;)

Teika (Teika kazura)
diff --git a/themes/Makefile.in b/themes/Makefile.in
index 077c050..f00ff24 100644
--- a/themes/Makefile.in
+++ b/themes/Makefile.in
@@ -47,17 +47,17 @@ all :
 
 install : all installdirs
 	for d in $(THEMES); do \
-	  rm -rf $(DESTDIR)$(themedir)/$$d; \
+	  rm -rf $(DESTDIR)$(themedir)/$$d/*; \
 	  for f in $(srcdir)/$$d/*; do \
-	    if [ $$f != $(srcdir)/$$d/CVS ]; then \
-	      ( cd $(srcdir) && tar czf $$d.tar.gz $$d/* ) ; \
-	      $(INSTALL_DATA) $$d.tar.gz $(DESTDIR)$(themedir)/$$d.tar.gz; \
-	    fi \
+	     $(INSTALL_DATA) $$f $(DESTDIR)$(themedir)/$$d/; \
 	  done \
 	done
 
 installdirs : mkinstalldirs
 	$(SHELL) $< $(DESTDIR)$(themedir) $(DESTDIR)$(sitethemedir)
+	for d in $(THEMES); do \
+	  $(SHELL) $< $(DESTDIR)$(themedir)/$$d; \
+	done
 
 uninstall :
 	for d in $(THEMES); do \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]