Author: logie
Date: Thu Oct 11 05:32:36 2012
New Revision: 1396909
URL: http://svn.apache.org/viewvc?rev=1396909&view=rev
Log:
require clownfish objects and write
Modified:
lucy/trunk/clownfish/compiler/ruby/Rakefile
Modified: lucy/trunk/clownfish/compiler/ruby/Rakefile
URL:
http://svn.apache.org/viewvc/lucy/trunk/clownfish/compiler/ruby/Rakefile?rev=1396909&r1=1396908&r2=1396909&view=diff
==============================================================================
--- lucy/trunk/clownfish/compiler/ruby/Rakefile (original)
+++ lucy/trunk/clownfish/compiler/ruby/Rakefile Thu Oct 11 05:32:36 2012
@@ -44,6 +44,13 @@ task :clownfish => [:parse_y_files] do
end
end
Rake::Task['cfc_ext'].invoke
+
+ require_relative 'ext/Clownfish/CFC'
+ hierarchy = Clownfish::CFC::Model::Hierarchy.new("autogen")
+ hierarchy.build
+
+ core_binding = Clownfish::CFC::Binding::Core.new(hierarchy, autogen_header,
'')
+ core_binding.write_all_modified
end
# Clean up compiled object files.
@@ -180,4 +187,17 @@ def run_make(dir, params)
chdir(current_dir) if dir
end
+def autogen_header
+ "
+/***********************************************
+
+ !!!! DO NOT EDIT !!!!
+
+ This file was auto-generated by Rakefile.
+
+ ***********************************************/
+ "
+
+end
+