Skip to content

Commit

Permalink
Remove xcconfig filetask and use method.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkachowski committed Apr 12, 2015
1 parent 3db3885 commit f43a613
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ file "Generated/cocos2d_version.txt" => 'SpriteBuilder/libs/cocos2d-iphone/VERSI
`cp SpriteBuilder/libs/cocos2d-iphone/VERSION #{task.name()}`
end

file "SpriteBuilder/Resources/Version.xcconfig" do |task|
puts "Generating #{task.name()}..."
def write_xcconfig
f = File.open("SpriteBuilder/Resources/Version.xcconfig","w")
f.write "//generated by rake script\nSB_VERSION=#{DEFAULT_SB_VERSION}"
f.close
Expand All @@ -130,7 +129,8 @@ namespace :build do
task :template => ["Generated/#{TEMPLATE_FILENAME}.zip"] {}

desc "Generate all associated files and version info"
task :generated => [:template, "Generated/Version.txt","Generated/cocos2d_version.txt","SpriteBuilder/Resources/Version.xcconfig" ] do
task :generated => [:template, "Generated/Version.txt","Generated/cocos2d_version.txt"] do
write_xcconfig
end

task :tests => [:generated,:build_requirements] do
Expand Down

0 comments on commit f43a613

Please sign in to comment.