[cairo-commit] rcairo ChangeLog,1.236,1.237 Rakefile,1.7,1.8

Kouhei Sutou commit at pdx.freedesktop.org
Fri Apr 11 05:38:36 PDT 2008


Committed by: kou

Update of /cvs/cairo/rcairo
In directory kemper:/tmp/cvs-serv5712

Modified Files:
	ChangeLog Rakefile 
Log Message:
* Rakefile: fix dependencies.


Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/rcairo/ChangeLog,v
retrieving revision 1.236
retrieving revision 1.237
diff -u -d -r1.236 -r1.237
--- ChangeLog	11 Apr 2008 12:20:23 -0000	1.236
+++ ChangeLog	11 Apr 2008 12:43:25 -0000	1.237
@@ -1,6 +1,8 @@
 2008-04-11  Kouhei Sutou  <kou at cozmixng.org>
 
-	* Rakefile: follow the recent Hoe's changes.
+	* Rakefile:
+	- follow the recent Hoe's changes.
+	- fix dependencies.
 
 	* src/rb_cairo_surface.c: implemented Cairo::PSSurface#eps?.
 

Index: Rakefile
===================================================================
RCS file: /cvs/cairo/rcairo/Rakefile,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- Rakefile	11 Apr 2008 12:20:23 -0000	1.7
+++ Rakefile	11 Apr 2008 12:43:25 -0000	1.8
@@ -1,5 +1,4 @@
-# -*- coding: utf-8 -*-
-# -*- ruby -*-
+# -*- coding: utf-8; mode: ruby -*-
 
 require 'English'
 
@@ -136,11 +135,11 @@
 doc_title_image = File.join(doc_dir, "rcairo-title.png")
 task(doc_index).instance_variable_get("@actions").clear
 
-file doc_index => doc_dir do
+file doc_dir do
   mkdir_p doc_dir
 end
 
-file doc_title_image => rcairo_doc_title_image do
+file doc_title_image => [doc_dir, rcairo_doc_title_image] do
   cp rcairo_doc_title_image, doc_title_image
 end
 
@@ -181,9 +180,13 @@
 end
 
 langs.each do |lang,|
-  lang_doc_index = File.join(doc_dir, lang, "index.html")
+  lang_doc_dir = File.join(doc_dir, lang)
+  file lang_doc_dir do
+    mkdir_p lang_doc_dir
+  end
+  lang_doc_index = File.join(lang_doc_dir, "index.html")
   task doc_index => lang_doc_index
-  file lang_doc_index do
+  file lang_doc_index => [lang_doc_dir] do
     lang_doc_dir = File.join(doc_dir, lang)
     lang_rcairo_doc_dir = File.join(rcairo_doc_dir, lang)
     mkdir_p lang_doc_dir



More information about the cairo-commit mailing list