[gtk-css-engine] Add theme template infrastructure.



commit 648855fc4407665c74367c82a7c98e82c196cccb
Author: Robert Staudinger <robsta gnome org>
Date:   Sat Aug 15 15:13:14 2009 +0200

    Add theme template infrastructure.

 Makefile.am                     |   17 +++++++++++++++++
 themes/Makefile.am              |    3 +++
 themes/gce-template.in/Makefile |    7 +++++++
 3 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 8273aea..7bf98b1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -15,6 +15,8 @@ EXTRA_DIST = \
 	TODO \
 	autogen.sh
 
+DISTCLEANFILES = $(GCE_TEMPLATE_TARBALL)
+
 distclean-local:
 	rm -rf *.cache *~
 
@@ -22,3 +24,18 @@ ChangeLog: configure.in
 	@echo Creating ChangeLog ...
 	$(top_srcdir)/build/gen-changelog.pl > $@
 
+GCE_TEMPLATE=gce-template-$(VERSION)
+GCE_TEMPLATE_TARBALL=$(GCE_TEMPLATE).tgz
+GCE_TEMPLATE_DIR=$(GCE_TEMPLATE)/gtk-2.0
+gce-template:
+	mkdir -p $(GCE_TEMPLATE_DIR)
+	cp themes/gce-template.in/Makefile $(GCE_TEMPLATE_DIR)
+	cp themes/moblesse/gtk-2.0/gtkrc $(GCE_TEMPLATE_DIR)
+	cp themes/moblesse/gtk-2.0/gtkrc.css $(GCE_TEMPLATE_DIR)
+	for img in `ls -1 themes/moblesse/gtk-2.0/*.png`; do cp $$img $(GCE_TEMPLATE_DIR); done
+	for img in `ls -1 themes/moblesse/gtk-2.0/*.svg`; do cp $$img $(GCE_TEMPLATE_DIR); done
+	tar -czf $(GCE_TEMPLATE_TARBALL) $(GCE_TEMPLATE)
+	rm -rf $(GCE_TEMPLATE)
+
+.PHONY: gce-template
+
diff --git a/themes/Makefile.am b/themes/Makefile.am
index 3d2f061..93b1e79 100644
--- a/themes/Makefile.am
+++ b/themes/Makefile.am
@@ -2,3 +2,6 @@
 DIST_SUBDIRS = moblesse pioneer
 SUBDIRS = moblesse
 
+EXTRA_DIST = \
+	gce-template.in
+
diff --git a/themes/gce-template.in/Makefile b/themes/gce-template.in/Makefile
new file mode 100644
index 0000000..e62ad1e
--- /dev/null
+++ b/themes/gce-template.in/Makefile
@@ -0,0 +1,7 @@
+
+generated.rc: gtkrc.css
+	ccss-stylesheet-to-gtkrc --user-agent-css=/etc/gtk-css-engine/user-agent.css $< > $@
+
+preview: generated.rc
+	@twf
+



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