mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-02 09:31:37 +08:00
17 lines
262 B
Ruby
17 lines
262 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
|