Rakefile in bones-compiler-1.3.1 vs Rakefile in bones-compiler-1.6.0
- old
+ new
@@ -35,11 +35,11 @@
# Settings for Bones
MEASUREMENTS = true
VERIFICATION = false
MEMORY_OPTIMISATIONS = true
-ADARWIN_OPTIONS = MEMORY_OPTIMISATIONS ? '-r -f -b -l' : ''
+ADARWIN_OPTIONS_BONES = MEMORY_OPTIMISATIONS ? '-r -f -b -l' : ''
# Small helper function to display text on screen
def display(text)
print '[Rake] ### '+text+': '
p
@@ -60,11 +60,11 @@
desc 'Run the examples through A-Darwin and Bones, then compile and execute them'
task :go, :file do |t, args|
bones_options = (MEASUREMENTS ? '-m ' : '') + (VERIFICATION ? '-c ' : '')
args.with_defaults(:file => EXAMPLES)
Dir[args.file].sort.each do |file|
- sh "bin/adarwin -a #{file} #{ADARWIN_OPTIONS}"
+ sh "bin/adarwin -a #{file} #{ADARWIN_OPTIONS_BONES}"
split = file.split('.')
file = split[0]+'_species'+'.'+split[1]
sh "bin/bones -a #{file} -t #{TARGET} #{bones_options}"
compile(file,TARGET)
execute(file,TARGET)
@@ -98,19 +98,19 @@
Dir[args.file].sort.each do |file|
execute(file,TARGET)
end
end
- # Helper function to compile code
- #def compile(file,target)
- # (system-specific, to be filled in by the user)
- #end
+ # Helper function to compile code (NOTE: this task is a stub)
+ def compile(file,target)
+ puts "[Rake] ### Compiling the code is system-specific, to be filled in..."
+ end
- # Helper function to execute code
- #def execute(file,target)
- # (system-specific, to be filled in by the user)
- #end
+ # Helper function to execute code (NOTE: this task is a stub)
+ def execute(file,target)
+ puts "[Rake] ### Executing the code is system-specific, to be filled in..."
+ end
end
task :examples => ['examples:generate']
# Task which adds a new target to the skeleton library based on an existing target
@@ -170,13 +170,14 @@
test.verbose = false
end
# Generate HTML documentation using RDoc
RDoc::Task.new do |rdoc|
- rdoc.title = 'Bones'
+ version = File.read('VERSION')
+ rdoc.title = 'Bones - %s' % version
rdoc.options << '--line-numbers'
rdoc.rdoc_files.include(File.join('lib','**','*.rb'))
rdoc.rdoc_files.include('README.rdoc')
+ rdoc.rdoc_files.include('VERSION')
rdoc.rdoc_dir = 'rdoc'
rdoc.main = 'README.rdoc'
end
-