Files
RubyMotion/lib/Rakefile
2011-11-03 22:12:04 +01:00

21 lines
310 B
Ruby

PROJECT_VERSION = ENV['project_version']
verbose(true)
task :default => :all
task :all => [:version_file]
task :version_file do
File.open('motion/version.rb', 'w') do |io|
io.puts <<EOS
module Motion
Version = \"#{PROJECT_VERSION}\"
end
EOS
end
end
task :clean do
rm_rf 'motion/version.rb'
end