~armagetronad-ct/armagetronad/0.4-advrim

« back to all changes in this revision

Viewing changes to MacOS/rakefile.rb

  • Committer: Voodoo
  • Date: 2013-04-11 10:46:24 UTC
  • Revision ID: voodoo-20130411104624-zse1f33o7ten188z
merge -r 1454..1476 lp:armagetronad/0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Setup load-path
2
 
$LOAD_PATH.unshift(File.expand_path("./"))
3
 
 
4
 
# Make directory return a useful value
5
 
alias :original_directory :directory
6
 
def directory(dir)
7
 
  original_directory(dir)
8
 
  Rake::Task[dir]
9
 
end
10
 
 
11
 
require "rakelib/config"
12
 
 
13
 
module AA
14
 
  CONFIG = AA::Config.new
15
 
end
16
 
 
17
 
AA::CONFIG.version_info.initialize_info
18
 
 
19
 
import "rakelib/xcode.rake"
20
 
import "rakelib/release.rake"
21
 
import "rakelib/aabeta.rake"
22
 
 
23
 
task "remove-version" do
24
 
  rm_rf(AA::CONFIG.generated_path("src", "macosx"))
25
 
  if AA::CONFIG.build_type == :development
26
 
    rm_f(AA::CONFIG::version_info.version_file)
27
 
  end
28
 
end
29
 
 
30
 
desc "Update version"
31
 
task "update-version" => ["remove-version", "xcode:process-files"]
32