mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-09 22:44:31 +08:00
26 lines
506 B
Ruby
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
|