Files
RubyMotion/lib/Rakefile
Laurent Sansonetti 87298c9b6f add copyright headers
2012-04-24 18:26:30 +02:00

26 lines
506 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
# Copyright (C) 2012, HipByte SPRL. All Rights Reserved.
#
# This file is subject to the terms and conditions of the End User License
# Agreement accompanying the package this file is a part of.
module Motion
Version = \"#{PROJECT_VERSION}\"
end
EOS
end
end
task :clean do
rm_rf 'motion/version.rb'
end