[gegl] create-reference.rb: do not rely on operations.html existing



commit 7e7d33c75c08cfd6daa674cd9fc47c9c6cd09831
Author: Øyvind Kolås <pippin gimp org>
Date:   Sun May 25 03:08:26 2014 +0200

    create-reference.rb: do not rely on operations.html existing

 tools/create-reference.rb |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/tools/create-reference.rb b/tools/create-reference.rb
index 43683f6..4db5636 100755
--- a/tools/create-reference.rb
+++ b/tools/create-reference.rb
@@ -575,12 +575,14 @@ File.open("gegl.devhelp", "w") {|file|
 
     }
 
-    IO.foreach("operations.html"){ |line|
-        if line =~ /^<li><a href='#op_.*'>.*<\/a><\/li>/
-            opname=line.gsub(/.*op_/,'').gsub(/'.*/,'').strip
-            file.puts "<function name='#{opname}' link='operations.html#op_#{opname}'/>"
-        end
-    }
+
+    # XXX: make this extract from operations.json
+    #IO.foreach("operations.html"){ |line|
+    #    if line =~ /^<li><a href='#op_.*'>.*<\/a><\/li>/
+    #        opname=line.gsub(/.*op_/,'').gsub(/'.*/,'').strip
+    #        file.puts "<function name='#{opname}' link='operations.html#op_#{opname}'/>"
+    #    end
+    #}
 
     file.puts "</functions>"
     file.puts "</book>"


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